aboutsummaryrefslogtreecommitdiff
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
commit1754f103e6323b908fc004d992930933a04183ce (patch)
tree82a936bf08000012e6ee16b4bb72b5beef75e05d /gdb/cli
parent540b09cb7df7c3b34dd5dd9d8e5e6fea5d482baf (diff)
downloadgdb-1754f103e6323b908fc004d992930933a04183ce.zip
gdb-1754f103e6323b908fc004d992930933a04183ce.tar.gz
gdb-1754f103e6323b908fc004d992930933a04183ce.tar.bz2
* 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 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. */