From b41d91a7bc3686d0bd44c54b6b9a1fdca3bc74af Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 17 Dec 2009 19:33:59 +0000 Subject: [PATCH] * deffilep.y (def_file_free): Add missing shadow parameter renaming. (def_file_print): Likewise. (def_stash_module): Likewise. (def_file_add_import): Likewise. --- ld/ChangeLog | 7 +++++++ ld/deffilep.y | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2f7b131ae4e..261cdc8080c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2009-12-17 Dave Korn + + * deffilep.y (def_file_free): Add missing shadow parameter renaming. + (def_file_print): Likewise. + (def_stash_module): Likewise. + (def_file_add_import): Likewise. + 2009-12-11 Nick Clifton * Makefile.in: Regenerate. diff --git a/ld/deffilep.y b/ld/deffilep.y index 43847bcd270..1104c49cc80 100644 --- a/ld/deffilep.y +++ b/ld/deffilep.y @@ -382,7 +382,7 @@ def_file_free (def_file *fdef) if (fdef->exports) { - for (i = 0; i < def->num_exports; i++) + for (i = 0; i < fdef->num_exports; i++) { if (fdef->exports[i].internal_name && fdef->exports[i].internal_name != fdef->exports[i].name) @@ -512,7 +512,7 @@ def_file_print (FILE *file, def_file *fdef) if (fdef->version_major != -1) fprintf (file, " version: %d.%d\n", fdef->version_major, fdef->version_minor); - fprintf (file, "<<<< def_file at 0x%08x\n", def); + fprintf (file, "<<<< def_file at 0x%08x\n", fdef); } #endif @@ -569,7 +569,7 @@ def_stash_module (def_file *fdef, const char *name) if ((s = def_get_module (fdef, name)) != NULL) return s; s = xmalloc (sizeof (def_file_module) + strlen (name)); - s->next = def->modules; + s->next = fdef->modules; fdef->modules = s; s->user_data = 0; strcpy (s->name, name); @@ -602,7 +602,7 @@ def_file_add_import (def_file *fdef, if (name) i->name = xstrdup (name); if (module) - i->module = def_stash_module (def, module); + i->module = def_stash_module (fdef, module); i->ordinal = ordinal; if (internal_name) i->internal_name = xstrdup (internal_name); -- 2.30.2