From 9156548dc760756882dc4dd2a3b1ba39e60980c0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 5 Feb 2001 20:08:28 +0000 Subject: Fix the worst of the damage so it actually compiles now (though, strictly speaking the entire pile of rpc dung is infect damage). Anyway, hopefully NFS using things may now be able to work... -Erik --- libc/inet/rpc/xdr.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libc/inet/rpc/xdr.c') diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c index 8f6fbca22..a13090c3f 100644 --- a/libc/inet/rpc/xdr.c +++ b/libc/inet/rpc/xdr.c @@ -41,6 +41,7 @@ */ #include +#include #include #include #include @@ -238,9 +239,7 @@ char *cp; /* * XDR an unsigned char */ -bool_t xdr_u_char(xdrs, cp) -XDR *xdrs; -char *cp; +bool_t xdr_u_char (XDR *xdrs, u_char *cp) { u_int u; @@ -317,7 +316,7 @@ caddr_t cp; register u_int cnt; { register u_int rndup; - static crud[BYTES_PER_XDR_UNIT]; + static u_long crud[BYTES_PER_XDR_UNIT]; /* * if no data we are done @@ -439,7 +438,7 @@ bool_t xdr_union(xdrs, dscmp, unp, choices, dfault) register XDR *xdrs; enum_t *dscmp; /* enum to decide which arm to work on */ char *unp; /* the union itself */ -struct xdr_discrim *choices; /* [value, xdr proc] for each arm */ +const struct xdr_discrim *choices; /* [value, xdr proc] for each arm */ xdrproc_t dfault; /* default xdr routine */ { register enum_t dscm; -- cgit v1.2.3