diff options
author | 2005-04-01 07:44:03 +0000 | |
---|---|---|
committer | 2005-04-01 07:44:03 +0000 | |
commit | 384ec30a651d095cda9dd6c443e0e00a6d20c547 (patch) | |
tree | 3e0758f47e4a82bf2f591cf06e8ed06eb3910e54 /lib/libc/rpc/xdr_array.c | |
parent | connect stat(1) to build (diff) | |
download | wireguard-openbsd-384ec30a651d095cda9dd6c443e0e00a6d20c547.tar.xz wireguard-openbsd-384ec30a651d095cda9dd6c443e0e00a6d20c547.zip |
ansify. ok deraadt@ jaredy@
Diffstat (limited to 'lib/libc/rpc/xdr_array.c')
-rw-r--r-- | lib/libc/rpc/xdr_array.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/libc/rpc/xdr_array.c b/lib/libc/rpc/xdr_array.c index 8e29dde9dc8..ea8dd45e41a 100644 --- a/lib/libc/rpc/xdr_array.c +++ b/lib/libc/rpc/xdr_array.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: xdr_array.c,v 1.6 2002/08/01 01:05:24 deraadt Exp $"; +static char *rcsid = "$OpenBSD: xdr_array.c,v 1.7 2005/04/01 07:44:04 otto Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -57,13 +57,12 @@ static char *rcsid = "$OpenBSD: xdr_array.c,v 1.6 2002/08/01 01:05:24 deraadt Ex * xdr procedure to call to handle each element of the array. */ bool_t -xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc) - XDR *xdrs; - caddr_t *addrp; /* array pointer */ - u_int *sizep; /* number of elements */ - u_int maxsize; /* max numberof elements */ - u_int elsize; /* size in bytes of each element */ - xdrproc_t elproc; /* xdr routine to handle each element */ +xdr_array(XDR *xdrs, + caddr_t *addrp, /* array pointer */ + u_int *sizep, /* number of elements */ + u_int maxsize, /* max numberof elements */ + u_int elsize, /* size in bytes of each element */ + xdrproc_t elproc) /* xdr routine to handle each element */ { caddr_t target = *addrp; u_int nodesize, c, i; @@ -130,12 +129,8 @@ xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc) * > xdr_elem: routine to XDR each element */ bool_t -xdr_vector(xdrs, basep, nelem, elemsize, xdr_elem) - XDR *xdrs; - char *basep; - u_int nelem; - u_int elemsize; - xdrproc_t xdr_elem; +xdr_vector(XDR *xdrs, char *basep, u_int nelem, u_int elemsize, + xdrproc_t xdr_elem) { char *elptr; u_int i; |