aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
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/dlltool.c
parent23965a5aa6f8a1ad75ab7a4af047dff8865a3082 (diff)
downloadgdb-9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2.zip
gdb-9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2.tar.gz
gdb-9b91d2fc9386ce28ad2925ff4d5dca1a09d09ea2.tar.bz2
* dlltool.c (identify_search_section): Cast argument, not return
value, of xstrdup to 'char*'.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index fff8b77..a19400d 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);