diff options
author | peter <peter@FreeBSD.org> | 1996-12-30 14:07:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-30 14:07:11 +0000 |
commit | dd628555ded706aeb52ebe2618a29335b88d82a2 (patch) | |
tree | c2637d779b879fd180fe881fdb6be5a307f97c6e /lib/libc/xdr/xdr_array.c | |
parent | 2095ec92ed195b8797cd240e292c4fc4120b87b0 (diff) | |
download | FreeBSD-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_array.c')
-rw-r--r-- | lib/libc/xdr/xdr_array.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/xdr/xdr_array.c b/lib/libc/xdr/xdr_array.c index 35bbb2b..019c255 100644 --- a/lib/libc/xdr/xdr_array.c +++ b/lib/libc/xdr/xdr_array.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)xdr_array.c 2.1 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: xdr_array.c,v 1.2 1995/05/30 05:42:04 rgrimes Exp $"; +static char *rcsid = "$Id: xdr_array.c,v 1.3 1995/10/22 14:53:54 phk Exp $"; #endif /* @@ -48,8 +48,7 @@ static char *rcsid = "$Id: xdr_array.c,v 1.2 1995/05/30 05:42:04 rgrimes Exp $"; #include <rpc/types.h> #include <rpc/xdr.h> -#define LASTUNSIGNED ((u_int)0-1) - +#define LASTUNSIGNED ((u_int) 0-1) /* * XDR an array of arbitrary elements @@ -98,7 +97,7 @@ xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc) "xdr_array: out of memory\n"); return (FALSE); } - bzero(target, nodesize); + memset(target, 0, nodesize); break; case XDR_FREE: |