summaryrefslogtreecommitdiffstats
path: root/sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c b/sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c
index 3711e53..d37dda6 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/rpc/xdr_array.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,8 +31,6 @@
* under license from the Regents of the University of California.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* xdr_array.c, Generic XDR routines impelmentation.
* These are the "non-trivial" xdr primitives used to serialize and de-serialize
@@ -69,17 +66,11 @@ xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize,
/* like strings, arrays are really counted arrays */
if (!xdr_u_int(xdrs, sizep)) {
-#ifdef DEBUG
- printf("xdr_array: size FAILED\n");
-#endif
return (FALSE);
}
c = *sizep;
if ((c > maxsize || LASTUNSIGNED / elsize < c) &&
xdrs->x_op != XDR_FREE) {
-#ifdef DEBUG
- printf("xdr_array: bad size FAILED\n");
-#endif
return (FALSE);
}
nodesize = c * elsize;
OpenPOWER on IntegriCloud