This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
bfd/netbsd-core.c warning fix
- From: Ben Elliston <bje at gnu dot org>
- To: binutils at sources dot redhat dot com
- Date: 07 Dec 2004 21:52:37 +1100
- Subject: bfd/netbsd-core.c warning fix
Committed as obvious. NetBSD's <sys/core.h> defines c_nseg in struct
core to be unsigned and `i' is used to iterate over the c_nsegs (and
for nothing else).
2004-12-07 Ben Elliston <bje@gnu.org>
* netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
Index: netbsd-core.c
===================================================================
RCS file: /cvs/src/src/bfd/netbsd-core.c,v
retrieving revision 1.18
diff -u -r1.18 netbsd-core.c
--- netbsd-core.c 24 Jun 2004 04:46:25 -0000 1.18
+++ netbsd-core.c 7 Dec 2004 10:49:13 -0000
@@ -63,7 +63,8 @@
bfd *abfd;
{
- int i, val;
+ int val;
+ unsigned i;
file_ptr offset;
asection *asect;
struct core core;