summaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
commit286bbcdc9f0a6e936b30b56d21975e48a31536dd (patch)
tree328eefe33fadbc5c9ff0853040b2c5d2e030dc51 /gdb/serial.c
parent373c7243e15fafb40a43ba0bccf2761b1b759c38 (diff)
downloadgdb-286bbcdc9f0a6e936b30b56d21975e48a31536dd.tar.gz
Change signature of function add_set_enum_cmd() so that it uses
constant character pointers. Update everything. As a consequence fix infrun's follow-fork plugging a small memory leak.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 0914e39b33f..d78fb40c112 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -50,12 +50,12 @@ static struct ui_file *serial_logfp = NULL;
static struct serial_ops *serial_interface_lookup (char *);
static void serial_logchar (struct ui_file *stream, int ch_type, int ch, int timeout);
-static char logbase_hex[] = "hex";
-static char logbase_octal[] = "octal";
-static char logbase_ascii[] = "ascii";
-static char *logbase_enums[] =
+static const char logbase_hex[] = "hex";
+static const char logbase_octal[] = "octal";
+static const char logbase_ascii[] = "ascii";
+static const char *logbase_enums[] =
{logbase_hex, logbase_octal, logbase_ascii, NULL};
-static char *serial_logbase = logbase_ascii;
+static const char *serial_logbase = logbase_ascii;