This is the mail archive of the cygwin-patches mailing list for the Cygwin 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]

avoid compiler warning with DEBUGGING


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I noticed a complaint about comparing signed and unsigned values, when
compiling with DEBUGGING enabled.  net.cc also has a lot of trailing blanks.

2009-05-20  Eric Blake  <ebb9@byu.net>

	* net.cc (gethostby_helper): Use correct signedness.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoT/McACgkQ84KuGfSFAYB5yACbBSHBbYlplWSHVtl32doXLLRP
tFYAni2YcsLFsNUgUp62jYlqGc82jD/y
=WPYH
-----END PGP SIGNATURE-----
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index cb0a5cd..79b2dfa 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -960,7 +960,8 @@ gethostby_helper (const char *name, const int af, const int type,

   record * anptr = NULL, * prevptr = NULL, * curptr;
   int i, alias_count = 0, string_size = 0, address_count = 0;
-  int complen, namelen1 = 0, address_len = 0, antype, anclass, ansize;
+  unsigned int complen;
+  int namelen1 = 0, address_len = 0, antype, anclass, ansize;

   /* Get the count of answers */
   ancount = ntohs (((HEADER *) msg)->ancount);
-- 
1.6.2.4


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