summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr/xdr_array.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-06-01 06:54:21 +0000
committerdim <dim@FreeBSD.org>2015-06-01 06:54:21 +0000
commit8c2b6d93700b452fac3cadba57de1b18a783ec92 (patch)
tree6e8da4ceef4a7a36d46426497125611b2907ee1f /lib/libc/xdr/xdr_array.c
parentb237d0308e74533064fa98d3f529f1b7eebd9e96 (diff)
parent2474a7a0d8a20e46cb41b5752822e3856e1f3bfb (diff)
downloadFreeBSD-src-8c2b6d93700b452fac3cadba57de1b18a783ec92.zip
FreeBSD-src-8c2b6d93700b452fac3cadba57de1b18a783ec92.tar.gz
Merge ^/head r283771 through r283870.
Diffstat (limited to 'lib/libc/xdr/xdr_array.c')
-rw-r--r--lib/libc/xdr/xdr_array.c23
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;
OpenPOWER on IntegriCloud