summaryrefslogtreecommitdiffstats
path: root/libc/inet/rpc/xdr_reference.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-09 20:06:30 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-09 20:06:30 +0000
commitc1fe19d4c1db610692365472a90f4661e48449c1 (patch)
treed0b0219ffca3c4c4256f55c4aea4513e43d6aecd /libc/inet/rpc/xdr_reference.c
parent9efafb8bbc7408b04643dcd53825d971577b4d9d (diff)
downloaduClibc-alpine-c1fe19d4c1db610692365472a90f4661e48449c1.tar.bz2
uClibc-alpine-c1fe19d4c1db610692365472a90f4661e48449c1.tar.xz
Bug ugly formatting update
Diffstat (limited to 'libc/inet/rpc/xdr_reference.c')
-rw-r--r--libc/inet/rpc/xdr_reference.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c
index 32d91d999..61050b6e7 100644
--- a/libc/inet/rpc/xdr_reference.c
+++ b/libc/inet/rpc/xdr_reference.c
@@ -55,12 +55,11 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
* size is the sizeof the referneced structure.
* proc is the routine to handle the referenced structure.
*/
-bool_t
-xdr_reference(xdrs, pp, size, proc)
- register XDR *xdrs;
- caddr_t *pp; /* the pointer to work on */
- u_int size; /* size of the object pointed to */
- xdrproc_t proc; /* xdr routine to handle the object */
+bool_t xdr_reference(xdrs, pp, size, proc)
+register XDR *xdrs;
+caddr_t *pp; /* the pointer to work on */
+u_int size; /* size of the object pointed to */
+xdrproc_t proc; /* xdr routine to handle the object */
{
register caddr_t loc = *pp;
register bool_t stat;
@@ -73,15 +72,14 @@ xdr_reference(xdrs, pp, size, proc)
case XDR_DECODE:
*pp = loc = (caddr_t) mem_alloc(size);
if (loc == NULL) {
- (void) fprintf(stderr,
- "xdr_reference: out of memory\n");
+ (void) fprintf(stderr, "xdr_reference: out of memory\n");
return (FALSE);
}
- bzero(loc, (int)size);
+ bzero(loc, (int) size);
break;
- }
+ }
- stat = (*proc)(xdrs, loc, LASTUNSIGNED);
+ stat = (*proc) (xdrs, loc, LASTUNSIGNED);
if (xdrs->x_op == XDR_FREE) {
mem_free(loc, size);
@@ -110,23 +108,22 @@ xdr_reference(xdrs, pp, size, proc)
* > xdr_obj: routine to XDR an object.
*
*/
-bool_t
-xdr_pointer(xdrs,objpp,obj_size,xdr_obj)
- register XDR *xdrs;
- char **objpp;
- u_int obj_size;
- xdrproc_t xdr_obj;
+bool_t xdr_pointer(xdrs, objpp, obj_size, xdr_obj)
+register XDR *xdrs;
+char **objpp;
+u_int obj_size;
+xdrproc_t xdr_obj;
{
bool_t more_data;
more_data = (*objpp != NULL);
- if (! xdr_bool(xdrs,&more_data)) {
+ if (!xdr_bool(xdrs, &more_data)) {
return (FALSE);
}
- if (! more_data) {
+ if (!more_data) {
*objpp = NULL;
return (TRUE);
}
- return (xdr_reference(xdrs,objpp,obj_size,xdr_obj));
+ return (xdr_reference(xdrs, objpp, obj_size, xdr_obj));
}