* dlltool.c (identify_search_section): Cast argument, not return
authorDanny Smith <dannysmith@users.sourceforge.net>
Sun, 16 Nov 2008 06:00:41 +0000 (06:00 +0000)
committerDanny Smith <dannysmith@users.sourceforge.net>
Sun, 16 Nov 2008 06:00:41 +0000 (06:00 +0000)
value, of xstrdup to 'char*'.

binutils/ChangeLog
binutils/dlltool.c

index 43d4d5fc4db70cf233e7b232a63d747f0400a329..128b6975533fab7b3dd82dccd1098a91bf4a225e 100644 (file)
@@ -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.
index fff8b77e9fecb1c7dc7360c8b716026f88be949b..a19400d8449ae94b61fdb41552aa83636bbb7a1e 100644 (file)
@@ -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);