summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-07-04 13:29:13 +0000
committerMark Kettenis <kettenis@gnu.org>2005-07-04 13:29:13 +0000
commitaf107bd7040cdd5cc2ab79890e756bb5dd4e8e31 (patch)
tree38121850cf444fb3e2b1ccdda50973c9f6cede9c /gdb/cli
parent59f87c6434455d89771029a3a0966031fce0976e (diff)
downloadgdb-af107bd7040cdd5cc2ab79890e756bb5dd4e8e31.tar.gz
* bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
* coffread.c (patch_type, process_coff_symbol): Likewise. * corelow.c (core_open): Likewise. * dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile): * language.c (set_lang_str, set_type_str, set_range_str) (set_case_str): Likewise. * source.c (add_path, openp): Likewise. * stabsread.c: Likewise. * top.c (init_history): Likewise. * utils.c (xfullpath): Likewise. * value.c (lookup_internalvar): Likewise. * cli/cli-cmds.c (cd_command): Likewise. * cli/cli-dump.c (add_dump_command): Likewise.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c5
-rw-r--r--gdb/cli/cli-dump.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index aaba486ed33..8d3416764ba 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -366,9 +366,10 @@ cd_command (char *dir, int from_tty)
else
{
if (IS_DIR_SEPARATOR (current_directory[strlen (current_directory) - 1]))
- current_directory = concat (current_directory, dir, NULL);
+ current_directory = concat (current_directory, dir, (char *)NULL);
else
- current_directory = concat (current_directory, SLASH_STRING, dir, NULL);
+ current_directory = concat (current_directory, SLASH_STRING,
+ dir, (char *)NULL);
xfree (dir);
}
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index e855c4c4d27..a842246436a 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -438,7 +438,7 @@ add_dump_command (char *name, void (*func) (char *args, char *mode),
&& c->doc[3] == 't'
&& c->doc[4] == 'e'
&& c->doc[5] == ' ')
- c->doc = concat ("Append ", c->doc + 6, NULL);
+ c->doc = concat ("Append ", c->doc + 6, (char *)NULL);
}
/* Opaque data for restore_section_callback. */