diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-08-19 09:17:55 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-08-19 09:17:55 +0000 |
commit | 88800f8d9b33a053583f9b287acf918d02bbb42c (patch) | |
tree | f07d1a5e1164e7d66deeacabb258bcfff58f37d3 /mdk-stage1/dietlibc/librpc/clnt_udp.c | |
parent | b0f2b0ccd4b2b95c00bdf773907ade413a29adf1 (diff) | |
download | drakx-88800f8d9b33a053583f9b287acf918d02bbb42c.tar drakx-88800f8d9b33a053583f9b287acf918d02bbb42c.tar.gz drakx-88800f8d9b33a053583f9b287acf918d02bbb42c.tar.bz2 drakx-88800f8d9b33a053583f9b287acf918d02bbb42c.tar.xz drakx-88800f8d9b33a053583f9b287acf918d02bbb42c.zip |
64-bit clean RPC code enough to let MDK stage1 do NFS mounts
Diffstat (limited to 'mdk-stage1/dietlibc/librpc/clnt_udp.c')
-rw-r--r-- | mdk-stage1/dietlibc/librpc/clnt_udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/dietlibc/librpc/clnt_udp.c b/mdk-stage1/dietlibc/librpc/clnt_udp.c index 874ef62db..962718269 100644 --- a/mdk-stage1/dietlibc/librpc/clnt_udp.c +++ b/mdk-stage1/dietlibc/librpc/clnt_udp.c @@ -250,7 +250,7 @@ struct timeval utimeout; /* seconds to wait before giving up */ /* * the transaction is the first thing in the out buffer */ - (*(unsigned short *) (cu->cu_outbuf))++; + (*(uint32_t *) (cu->cu_outbuf))++; if ((!XDR_PUTLONG(xdrs, (long *) &proc)) || (!AUTH_MARSHALL(cl->cl_auth, xdrs)) || (!(*xargs) (xdrs, argsp))) return (cu->cu_error.re_status = RPC_CANTENCODEARGS); @@ -324,10 +324,10 @@ struct timeval utimeout; /* seconds to wait before giving up */ cu->cu_error.re_errno = errno; return (cu->cu_error.re_status = RPC_CANTRECV); } - if (inlen < sizeof(unsigned long)) + if (inlen < 4) continue; /* see if reply transaction id matches sent id */ - if (*((unsigned long *) (cu->cu_inbuf)) != *((unsigned long *) (cu->cu_outbuf))) + if (*((uint32_t *) (cu->cu_inbuf)) != *((uint32_t *) (cu->cu_outbuf))) continue; /* we now assume we have the proper reply */ break; |