diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-05-31 18:08:58 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-05-31 18:08:58 +0000 |
commit | da00b605c11e2f1da68f9039848a150bdd1f29ae (patch) | |
tree | fdcd9a993722be2dbe2262a390a1b086817586fb /lib/libc/xdr/xdr_array.c | |
parent | 63f29928778716094f08347c960d23e587ea1ef8 (diff) | |
download | FreeBSD-src-da00b605c11e2f1da68f9039848a150bdd1f29ae.zip FreeBSD-src-da00b605c11e2f1da68f9039848a150bdd1f29ae.tar.gz |
Use ANSI C prototypes.
Diffstat (limited to 'lib/libc/xdr/xdr_array.c')
-rw-r--r-- | lib/libc/xdr/xdr_array.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/libc/xdr/xdr_array.c b/lib/libc/xdr/xdr_array.c index 620155c..a11c7a1 100644 --- a/lib/libc/xdr/xdr_array.c +++ b/lib/libc/xdr/xdr_array.c @@ -64,13 +64,15 @@ __FBSDID("$FreeBSD$"); * 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, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t 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 + */ { u_int i; caddr_t target = *addrp; @@ -142,12 +144,7 @@ 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) { u_int i; char *elptr; |