diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-02-23 12:25:57 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-02-23 12:25:57 +0000 |
commit | 5282db756ab462a019cec4c2db3f5a35cfee14eb (patch) | |
tree | 2f1a587bf81c7fec45608a3af7c1a1dca5fb7adb | |
parent | dbf37d558402f31ce8237e33fef487bc0e2d90a0 (diff) | |
download | binutils-redhat-5282db756ab462a019cec4c2db3f5a35cfee14eb.tar.gz |
* dlltool.c: Warning fixes.
* objdump.c: Likewise.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/dlltool.c | 6 | ||||
-rw-r--r-- | binutils/objdump.c | 5 |
3 files changed, 11 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 2e5cbf90a3..08675d488f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-02-23 Alan Modra <amodra@bigpond.net.au> + + * dlltool.c: Warning fixes. + * objdump.c: Likewise. + 2005-02-22 Alan Modra <amodra@bigpond.net.au> * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 3e663e52b7..c817782612 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -1,6 +1,6 @@ /* dlltool.c -- tool to generate stuff for PE style DLLs - Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 - Free Software Foundation, Inc. + Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, + 2005 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -2417,7 +2417,7 @@ make_one_lib_file (export_type *exp, int i) si->data = xmalloc (si->size); si->data[0] = idx & 0xff; si->data[1] = idx >> 8; - strcpy (si->data + 2, xlate (exp->import_name)); + strcpy ((char *) si->data + 2, xlate (exp->import_name)); } break; case IDATA7: diff --git a/binutils/objdump.c b/binutils/objdump.c index 01e619840a..f63e298152 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1,6 +1,6 @@ /* objdump.c -- dump information about an object file. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004 + 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -2056,7 +2056,8 @@ find_stabs_section (bfd *abfd, asection *section, void *names) if (strtab) { - stabs = read_section_stabs (abfd, section->name, &stab_size); + stabs = (bfd_byte *) read_section_stabs (abfd, section->name, + &stab_size); if (stabs) print_section_stabs (abfd, section->name, &sought->string_offset); } |