2002-12-13 Paul Eggert <eggert@twinsun.com>
authorroland <roland>
Mon, 16 Dec 2002 02:05:48 +0000 (02:05 +0000)
committerroland <roland>
Mon, 16 Dec 2002 02:05:48 +0000 (02:05 +0000)
commit7ad4c18d35e13c2cea434887f01e1ae658c0da80
tree939353c14ef202b6ca153218aa48d18a096f84da
parent43a4f4bd9c38e0ca6772664e29958e9aa4c745a1
2002-12-13  Paul Eggert  <eggert@twinsun.com>

* sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
is now u_int, not int.
(struct XDR.x_handy): Now u_int, not int.
* sunrpc/xdr_mem.c: Include <limits.h>.
(xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
x_handy is now unsigned, not signed.
Do not decrement x_handy if no change is made.
(xdrmem_setpos): Check for int overflow.
* sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
(xdr_sizeof): Remove cast that is now unnecessary, now that
x_handy is unsigned.
sunrpc/rpc/xdr.h
sunrpc/xdr_mem.c
sunrpc/xdr_sizeof.c