2005-01-27 Andrew Cagney <cagney@gnu.org>
* cli/cli-dump.h (fopen_with_cleanup): Make "filename" const. * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string parameters const, change buf to a const bfd_byte. (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string parameters const.
This commit is contained in:
parent
10e2d419a3
commit
c26b8e3b42
3 changed files with 17 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
/* Dump-to-file commands, for GDB, the GNU debugger.
|
||||
|
||||
Copyright 2001 Free Software Foundation, Inc.
|
||||
Copyright 2001, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
|
@ -31,7 +31,7 @@ extern char *scan_filename_with_cleanup (char **cmd, const char *defname);
|
|||
|
||||
extern char *scan_expression_with_cleanup (char **cmd, const char *defname);
|
||||
|
||||
extern FILE *fopen_with_cleanup (char *filename, const char *mode);
|
||||
extern FILE *fopen_with_cleanup (const char *filename, const char *mode);
|
||||
|
||||
extern char *skip_spaces (char *inp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue