aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-02-12 12:33:51 +0000
committerNick Clifton <nickc@redhat.com>2008-02-12 12:33:51 +0000
commitfd64a958f08f81ff3f1959b9ed0634b48d3d5da3 (patch)
tree5e14e8127af422eb903b3f5360c8df7eaf4cb69a /binutils/dlltool.c
parent0ffa91dd69a9240c71da10d76635a1bb2ff4ee36 (diff)
downloadgdb-fd64a958f08f81ff3f1959b9ed0634b48d3d5da3.zip
gdb-fd64a958f08f81ff3f1959b9ed0634b48d3d5da3.tar.gz
gdb-fd64a958f08f81ff3f1959b9ed0634b48d3d5da3.tar.bz2
* dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
the argument. (scan_obj_filename): Do not drop the const qualifier when calling mcore_elf_cache_filename. (struct fname_cache): Add const qualifier to filename field.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 2459e21..cbdde7c 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -1,6 +1,6 @@
/* dlltool.c -- tool to generate stuff for PE style DLLs
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -271,7 +271,7 @@ static char *look_for_prog (const char *, const char *, int);
static char *deduce_name (const char *);
#ifdef DLLTOOL_MCORE_ELF
-static void mcore_elf_cache_filename (char *);
+static void mcore_elf_cache_filename (const char *);
static void mcore_elf_gen_out_file (void);
#endif
@@ -1546,7 +1546,7 @@ scan_obj_file (const char *filename)
#ifdef DLLTOOL_MCORE_ELF
if (mcore_elf_out_file)
- mcore_elf_cache_filename ((char *) filename);
+ mcore_elf_cache_filename (filename);
#endif
}
@@ -3558,7 +3558,7 @@ deduce_name (const char *prog_name)
#ifdef DLLTOOL_MCORE_ELF
typedef struct fname_cache
{
- char * filename;
+ const char * filename;
struct fname_cache * next;
}
fname_cache;
@@ -3566,7 +3566,7 @@ fname_cache;
static fname_cache fnames;
static void
-mcore_elf_cache_filename (char * filename)
+mcore_elf_cache_filename (const char * filename)
{
fname_cache * ptr;