Change 13893 by jhi@alpha on 2001/12/26 19:11:49

        Subject: [PATCH] Re: [ PATCH ] Cygwin groups.t  (PLEASE CHECK)
        From: Nicholas Clark <[EMAIL PROTECTED]>
        Date: Wed, 26 Dec 2001 19:07:33 +0000
        Message-ID: <[EMAIL PROTECTED]>            
        
        socketpair() (un)signedness nit.

Affected files ...

.... //depot/perl/util.c#309 edit

Differences ...

==== //depot/perl/util.c#309 (text) ====
Index: perl/util.c
--- perl/util.c.~1~     Wed Dec 26 12:15:06 2001
+++ perl/util.c Wed Dec 26 12:15:06 2001
@@ -3994,7 +3994,7 @@
     struct sockaddr_in addresses[2];
     int i;
     Sock_size_t size = sizeof (struct sockaddr_in);
-    short port;
+    unsigned short port;
     int got;
 
     memset (&addresses, 0, sizeof (addresses));
@@ -4078,7 +4078,7 @@
        (hence MSG_DONTWAIT). Or that what arrives was sent by us.  */
     {
         struct sockaddr_in readfrom;
-        short buffer[2];
+        unsigned short buffer[2];
 
         i = 1;
         do {
@@ -4095,7 +4095,7 @@
             if (got != sizeof(port)
                 || size != sizeof (struct sockaddr_in)
                 /* Check other socket sent us its port.  */
-                || buffer[0] != addresses[!i].sin_port
+                || buffer[0] != (unsigned short) addresses[!i].sin_port
                 /* Check kernel says we got the datagram from that socket.  */
                 || readfrom.sin_family != addresses[!i].sin_family
                 || readfrom.sin_addr.s_addr != addresses[!i].sin_addr.s_addr
End of Patch.

Reply via email to