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/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index d151174..690f87c 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3030,9 +3030,9 @@ xfullpath (const char *filename) directory separator, avoid doubling it. */ real_path = gdb_realpath (dir_name); if (IS_DIR_SEPARATOR (real_path[strlen (real_path) - 1])) - result = concat (real_path, base_name, NULL); + result = concat (real_path, base_name, (char *)NULL); else - result = concat (real_path, SLASH_STRING, base_name, NULL); + result = concat (real_path, SLASH_STRING, base_name, (char *)NULL); xfree (real_path); return result; -- cgit v1.1