This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]