diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
commit | 356b686774968d312476b66d0c1fb1f21c46305a (patch) | |
tree | 2f5aaf6e6add6d81e463d41609bd2f3cd5107d0a /libc/inet/rpc/xdr_mem.c | |
parent | e57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (diff) |
Clean up lots of warnings.
Diffstat (limited to 'libc/inet/rpc/xdr_mem.c')
-rw-r--r-- | libc/inet/rpc/xdr_mem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/inet/rpc/xdr_mem.c b/libc/inet/rpc/xdr_mem.c index 17707f8ff..5dbebae8d 100644 --- a/libc/inet/rpc/xdr_mem.c +++ b/libc/inet/rpc/xdr_mem.c @@ -41,7 +41,7 @@ * */ - +#include <string.h> #include <rpc/types.h> #include <rpc/xdr.h> #include <netinet/in.h> @@ -52,7 +52,7 @@ static bool_t xdrmem_getbytes(); static bool_t xdrmem_putbytes(); static u_int xdrmem_getpos(); static bool_t xdrmem_setpos(); -static long *xdrmem_inline(); +static int32_t *xdrmem_inline(); static void xdrmem_destroy(); static struct xdr_ops xdrmem_ops = { @@ -163,15 +163,15 @@ u_int pos; return (TRUE); } -static long *xdrmem_inline(xdrs, len) +static int32_t *xdrmem_inline(xdrs, len) register XDR *xdrs; int len; { - long *buf = 0; + int32_t *buf = 0; if (xdrs->x_handy >= len) { xdrs->x_handy -= len; - buf = (long *) xdrs->x_private; + buf = (int32_t *) xdrs->x_private; xdrs->x_private += len; } return (buf); |