aboutsummaryrefslogtreecommitdiff
path: root/ld/deffilep.y
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-18 10:10:21 +0000
committerAlan Modra <amodra@gmail.com>2001-09-18 10:10:21 +0000
commitdb09f25b32e3a437a72c0bcc4ec67bb97d16e81b (patch)
tree2e779aa55a1c9d8b6c667b98057103535ea8d1ff /ld/deffilep.y
parent0e1a166b287f476e03396c78184211720765aa5e (diff)
downloadgdb-db09f25b32e3a437a72c0bcc4ec67bb97d16e81b.zip
gdb-db09f25b32e3a437a72c0bcc4ec67bb97d16e81b.tar.gz
gdb-db09f25b32e3a437a72c0bcc4ec67bb97d16e81b.tar.bz2
* deffilep.y (def_stash_module): Constify "name" param.
* pe-dll.c: Replace CONST with const throughout. (quick_symbol): Constify "n1", "n2", "n3" params. (make_singleton_name_thunk): Constify "import" param. Make "buffer_len" a size_t. (make_import_fixup_entry): Constify "name", "fixup_name", "dll_symname" params. (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread. (pe_get32): Likewise. (pe_implied_import_dll): Likewise. * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb". (sort_by_section_name): Likewise. * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included. (make_import_fixup): Cast printf arg, rel->address to long rather than int. (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
Diffstat (limited to 'ld/deffilep.y')
-rw-r--r--ld/deffilep.y9
1 files changed, 5 insertions, 4 deletions
diff --git a/ld/deffilep.y b/ld/deffilep.y
index e411831..2121da0 100644
--- a/ld/deffilep.y
+++ b/ld/deffilep.y
@@ -1,6 +1,7 @@
%{ /* deffilep.y - parser for .def files */
-/* Copyright 1995, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright 1995, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -83,7 +84,7 @@ static void def_heapsize PARAMS ((int, int));
static void def_import
PARAMS ((const char *, const char *, const char *, const char *, int));
static void def_library PARAMS ((const char *, int));
-static def_file_module *def_stash_module PARAMS ((def_file *, char *));
+static def_file_module *def_stash_module PARAMS ((def_file *, const char *));
static void def_name PARAMS ((const char *, int));
static void def_section PARAMS ((const char *, int));
static void def_section_alt PARAMS ((const char *, const char *));
@@ -495,7 +496,7 @@ def_file_add_export (def, external_name, internal_name, ordinal)
static def_file_module *
def_stash_module (def, name)
def_file *def;
- char *name;
+ const char *name;
{
def_file_module *s;
for (s=def->modules; s; s=s->next)
@@ -532,7 +533,7 @@ def_file_add_import (def, name, module, ordinal, internal_name)
if (name)
i->name = xstrdup (name);
if (module)
- i->module = def_stash_module(def, module);
+ i->module = def_stash_module (def, module);
i->ordinal = ordinal;
if (internal_name)
i->internal_name = xstrdup (internal_name);