* 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.
This commit is contained in:
parent
0ffa91dd69
commit
fd64a958f0
2 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2008-02-12 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-02-08 H.J. Lu <hongjiu.lu@intel.com>
|
2008-02-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR binutils/5713
|
PR binutils/5713
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* dlltool.c -- tool to generate stuff for PE style DLLs
|
/* dlltool.c -- tool to generate stuff for PE style DLLs
|
||||||
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
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.
|
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 *);
|
static char *deduce_name (const char *);
|
||||||
|
|
||||||
#ifdef DLLTOOL_MCORE_ELF
|
#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);
|
static void mcore_elf_gen_out_file (void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1546,7 +1546,7 @@ scan_obj_file (const char *filename)
|
||||||
|
|
||||||
#ifdef DLLTOOL_MCORE_ELF
|
#ifdef DLLTOOL_MCORE_ELF
|
||||||
if (mcore_elf_out_file)
|
if (mcore_elf_out_file)
|
||||||
mcore_elf_cache_filename ((char *) filename);
|
mcore_elf_cache_filename (filename);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3558,7 +3558,7 @@ deduce_name (const char *prog_name)
|
||||||
#ifdef DLLTOOL_MCORE_ELF
|
#ifdef DLLTOOL_MCORE_ELF
|
||||||
typedef struct fname_cache
|
typedef struct fname_cache
|
||||||
{
|
{
|
||||||
char * filename;
|
const char * filename;
|
||||||
struct fname_cache * next;
|
struct fname_cache * next;
|
||||||
}
|
}
|
||||||
fname_cache;
|
fname_cache;
|
||||||
|
@ -3566,7 +3566,7 @@ fname_cache;
|
||||||
static fname_cache fnames;
|
static fname_cache fnames;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mcore_elf_cache_filename (char * filename)
|
mcore_elf_cache_filename (const char * filename)
|
||||||
{
|
{
|
||||||
fname_cache * ptr;
|
fname_cache * ptr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue