From dd628555ded706aeb52ebe2618a29335b88d82a2 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 30 Dec 1996 14:07:11 +0000 Subject: - 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. --- lib/libc/xdr/xdr_reference.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/xdr/xdr_reference.c') 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 #include -#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; } -- cgit v1.1