summaryrefslogtreecommitdiff
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
commitd0e82ce87773b952cbab2e64899abaa29a5213ea (patch)
tree2f497019ddefd68fd02431002eb8919b2bead02a
parent904408b6a545b8061cd464cdfe7a5bb753bbb17d (diff)
downloadbinutils-redhat-d0e82ce87773b952cbab2e64899abaa29a5213ea.tar.gz
* dlltool.c (identify_search_section): Cast argument, not return
value, of xstrdup to 'char*'.
-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);