From: Danny Smith Date: Sun, 16 Nov 2008 06:00:41 +0000 (+0000) Subject: * dlltool.c (identify_search_section): Cast argument, not return X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2;p=binutils-gdb.git * dlltool.c (identify_search_section): Cast argument, not return value, of xstrdup to 'char*'. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 43d4d5fc4db..128b6975533 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2008-11-16 Danny Smith + + * dlltool.c (identify_search_section): Cast argument, not return + value, of xstrdup to 'char*'. + 2008-11-15 Charles Wilson Added --identify option to dlltool. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index fff8b77e9fe..a19400d8449 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);