summaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-02-18 11:55:45 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-02-18 11:55:45 +0000
commitac0b4397fa20b2f662b654beee8a3f46489f5f29 (patch)
tree2d28d294e5a40c29dadb88f886c8f03e9573b32d /ld/ldmisc.c
parentb627b21c1ce597751d3c294f40f92febb1728738 (diff)
downloadbinutils-redhat-ac0b4397fa20b2f662b654beee8a3f46489f5f29.tar.gz
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
temporary variable node used for NULL argument.
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 21e6f4f84a..5112c716a4 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -241,12 +241,12 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning)
case 'S':
/* Print script file and linenumber. */
{
- node_type node;
+ etree_type node;
etree_type *tp = va_arg (arg, etree_type *);
if (tp == NULL)
{
- tp = (etree_type *) &node;
+ tp = &node;
tp->type.filename = ldlex_filename ();
tp->type.lineno = lineno;
}