mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 05:42:42 +08:00
Constify some commands in cli-logging.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
|
||||||
|
|
||||||
2017-09-27 Tom Tromey <tom@tromey.com>
|
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* cli/cli-script.c (user_defined_command): Constify.
|
* cli/cli-script.c (user_defined_command): Constify.
|
||||||
|
@ -146,9 +146,9 @@ handle_redirections (int from_tty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_logging_on (char *args, int from_tty)
|
set_logging_on (const char *args, int from_tty)
|
||||||
{
|
{
|
||||||
char *rest = args;
|
const char *rest = args;
|
||||||
|
|
||||||
if (rest && *rest)
|
if (rest && *rest)
|
||||||
{
|
{
|
||||||
@ -159,7 +159,7 @@ set_logging_on (char *args, int from_tty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_logging_off (char *args, int from_tty)
|
set_logging_off (const char *args, int from_tty)
|
||||||
{
|
{
|
||||||
if (saved_filename == NULL)
|
if (saved_filename == NULL)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user