From c26b8e3b42c143d9262b52f43d6f204f305f0276 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 27 Jan 2005 20:34:51 +0000 Subject: 2005-01-27 Andrew Cagney * 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. --- gdb/cli/cli-dump.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/cli/cli-dump.h') 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); -- cgit v1.1