From 1754f103e6323b908fc004d992930933a04183ce Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 4 Jul 2005 13:29:13 +0000 Subject: * 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. --- gdb/cli/cli-cmds.c | 5 +++-- gdb/cli/cli-dump.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index aaba486..8d34167 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 e855c4c..a842246 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. */ -- cgit v1.1