summaryrefslogtreecommitdiffstats
path: root/binutils
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2008-11-16 06:00:41 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2008-11-16 06:00:41 +0000
commit9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2 (patch)
tree271376d69912e1952ee70c89284cb94985813569 /binutils
parent23965a5aa6f8a1ad75ab7a4af047dff8865a3082 (diff)
downloadppe42-binutils-9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2.tar.gz
ppe42-binutils-9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2.zip
* dlltool.c (identify_search_section): Cast argument, not return
value, of xstrdup to 'char*'.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dlltool.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 43d4d5fc4d..128b697553 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-16 Danny Smith <dannysmith@usesr.sourceforge.net>
+
+ * dlltool.c (identify_search_section): Cast argument, not return
+ value, of xstrdup to 'char*'.
+
2008-11-15 Charles Wilson <cygwin@cwilson.fastmail.fm>
Added --identify option to dlltool.
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index fff8b77e9f..a19400d844 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -3106,7 +3106,7 @@ identify_search_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNU
free (identify_dll_name);
}
}
- identify_dll_name = (char*) xstrdup (data);
+ identify_dll_name = xstrdup ((char*) data);
}
free (data);
OpenPOWER on IntegriCloud