diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-27 20:34:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-27 20:34:51 +0000 |
commit | c26b8e3b42c143d9262b52f43d6f204f305f0276 (patch) | |
tree | a7260374a4aad57c7bce68bfb839eac75b1fc2ed /gdb/cli/cli-dump.h | |
parent | 10e2d419a3084f5ed32c340cd27a94a911f694b9 (diff) | |
download | gdb-c26b8e3b42c143d9262b52f43d6f204f305f0276.zip gdb-c26b8e3b42c143d9262b52f43d6f204f305f0276.tar.gz gdb-c26b8e3b42c143d9262b52f43d6f204f305f0276.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-dump.h')
-rw-r--r-- | gdb/cli/cli-dump.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-dump.h b/gdb/cli/cli-dump.h index 187e0e0..91c9cfb 100644 --- a/gdb/cli/cli-dump.h +++ b/gdb/cli/cli-dump.h @@ -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); |