summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr/xdr_reference.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-12-30 14:07:11 +0000
committerpeter <peter@FreeBSD.org>1996-12-30 14:07:11 +0000
commitdd628555ded706aeb52ebe2618a29335b88d82a2 (patch)
treec2637d779b879fd180fe881fdb6be5a307f97c6e /lib/libc/xdr/xdr_reference.c
parent2095ec92ed195b8797cd240e292c4fc4120b87b0 (diff)
downloadFreeBSD-src-dd628555ded706aeb52ebe2618a29335b88d82a2.zip
FreeBSD-src-dd628555ded706aeb52ebe2618a29335b88d82a2.tar.gz
- Missing prototypes, including pointers to functions
- 64 bit long type safe (wire protocols specified in explicit sized types) - Support systems that don't do unaligned accesses - Support for explicit int16 and int32 sizes in xdr Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
Diffstat (limited to 'lib/libc/xdr/xdr_reference.c')
-rw-r--r--lib/libc/xdr/xdr_reference.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/xdr/xdr_reference.c b/lib/libc/xdr/xdr_reference.c
index 91ccff2..0cf1fde 100644
--- a/lib/libc/xdr/xdr_reference.c
+++ b/lib/libc/xdr/xdr_reference.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)xdr_reference.c 1.11 87/08/11 SMI";*/
/*static char *sccsid = "from: @(#)xdr_reference.c 2.1 88/07/29 4.0 RPCSRC";*/
-static char *rcsid = "$Id: xdr_reference.c,v 1.2 1995/05/30 05:42:12 rgrimes Exp $";
+static char *rcsid = "$Id: xdr_reference.c,v 1.3 1995/10/22 14:53:58 phk Exp $";
#endif
/*
@@ -48,7 +48,7 @@ static char *rcsid = "$Id: xdr_reference.c,v 1.2 1995/05/30 05:42:12 rgrimes Exp
#include <rpc/types.h>
#include <rpc/xdr.h>
-#define LASTUNSIGNED ((u_int)0-1)
+#define LASTUNSIGNED ((u_int) 0-1)
/*
* XDR an indirect pointer
@@ -81,7 +81,7 @@ xdr_reference(xdrs, pp, size, proc)
"xdr_reference: out of memory\n");
return (FALSE);
}
- bzero(loc, (int)size);
+ memset(loc, 0, (int)size);
break;
}
OpenPOWER on IntegriCloud