Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
authorroland <roland>
Tue, 19 Mar 1996 19:51:46 +0000 (19:51 +0000)
committerroland <roland>
Tue, 19 Mar 1996 19:51:46 +0000 (19:51 +0000)
* sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
since it really is testing for 32 bits.  Fixed casts to use
u_int32 instead of u_long.

sunrpc/clnt_udp.c

index 815cbb4..706457a 100644 (file)
@@ -324,10 +324,10 @@ send_again:
                        cu->cu_error.re_errno = errno;
                        return (cu->cu_error.re_status = RPC_CANTRECV);
                }
-               if (inlen < sizeof(u_long))
+               if (inlen < 4)
                        continue;       
                /* see if reply transaction id matches sent id */
-               if (*((u_long *)(cu->cu_inbuf)) != *((u_long *)(cu->cu_outbuf)))
+               if (*((u_int32_t *)(cu->cu_inbuf)) != *((u_int32_t *)(cu->cu_outbuf)))
                        continue;       
                /* we now assume we have the proper reply */
                break;