CVS winsup/cygwin/net.cc [DEBUGGING]

Brian Ford Brian.Ford@FlightSafety.com
Thu Mar 12 15:40:00 GMT 2009


FYI, I needed the attached patch to make it compile.  I did not post this
to patches with a ChangeLog because I didn't take the time to see if it is
correct.

-- 
Brian Ford
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...
-------------- next part --------------
Index: net.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
retrieving revision 1.250
diff -u -p -r1.250 net.cc
--- net.cc	6 Mar 2009 16:31:25 -0000	1.250
+++ net.cc	12 Mar 2009 15:37:45 -0000
@@ -1056,8 +1056,8 @@ gethostby_helper (const char *name, cons
 	{
 	  complen = dn_expand (msg, eomsg, curptr->name (), string_ptr, string_size);
 #ifdef DEBUGGING
-	  if (complen != curptr->complen)  
-	    go to debugging;
+	  if ((unsigned)complen != curptr->complen)  
+	    goto debugging;
 #endif
 	  ret->h_aliases[alias_count++] = string_ptr;
 	  namelen1 = curptr->namelen1;
@@ -1071,8 +1071,8 @@ gethostby_helper (const char *name, cons
 		{
 		  complen = dn_expand (msg, eomsg, curptr->name(), string_ptr, string_size);
 #ifdef DEBUGGING
-		  if (complen != curptr->complen)  
-		    go to debugging;
+		  if ((unsigned)complen != curptr->complen)  
+		    goto debugging;
 #endif
 		  ret->h_name = string_ptr;
 		  namelen1 = curptr->namelen1;
@@ -1090,12 +1090,12 @@ gethostby_helper (const char *name, cons
 	    }
 #ifdef DEBUGGING
       /* Should not get here */
-      go to debugging;
+      goto debugging;
 #endif
     }
 #ifdef DEBUGGING
   if (string_size < 0)  
-    go to debugging;
+    goto debugging;
 #endif      
   
   free (msg);
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list