diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-07-04 13:29:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-07-04 13:29:13 +0000 |
commit | 1754f103e6323b908fc004d992930933a04183ce (patch) | |
tree | 82a936bf08000012e6ee16b4bb72b5beef75e05d /gdb/source.c | |
parent | 540b09cb7df7c3b34dd5dd9d8e5e6fea5d482baf (diff) | |
download | gdb-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/source.c')
-rw-r--r-- | gdb/source.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/source.c b/gdb/source.c index 063ffe5..e2baddc 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1,6 +1,6 @@ /* List lines of source files for GDB, the GNU debugger. Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, - 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -487,10 +487,10 @@ add_path (char *dirname, char **which_path, int parse_separators) name = tilde_expand (name); #ifdef HAVE_DOS_BASED_FILE_SYSTEM else if (IS_ABSOLUTE_PATH (name) && p == name + 2) /* "d:" => "d:." */ - name = concat (name, ".", NULL); + name = concat (name, ".", (char *)NULL); #endif else if (!IS_ABSOLUTE_PATH (name) && name[0] != '$') - name = concat (current_directory, SLASH_STRING, name, NULL); + name = concat (current_directory, SLASH_STRING, name, (char *)NULL); else name = savestring (name, p - name); make_cleanup (xfree, name); @@ -563,15 +563,16 @@ add_path (char *dirname, char **which_path, int parse_separators) c = old[prefix]; old[prefix] = '\0'; - temp = concat (old, tinybuf, name, NULL); + temp = concat (old, tinybuf, name, (char *)NULL); old[prefix] = c; - *which_path = concat (temp, "", &old[prefix], NULL); + *which_path = concat (temp, "", &old[prefix], (char *)NULL); prefix = strlen (temp); xfree (temp); } else { - *which_path = concat (name, (old[0] ? tinybuf : old), old, NULL); + *which_path = concat (name, (old[0] ? tinybuf : old), + old, (char *)NULL); prefix = strlen (name); } xfree (old); @@ -771,7 +772,7 @@ done: char *f = concat (current_directory, IS_DIR_SEPARATOR (current_directory[strlen (current_directory) - 1]) ? "" : SLASH_STRING, - filename, NULL); + filename, (char *)NULL); *filename_opened = xfullpath (f); xfree (f); } |