svn commit: r283834 - head/lib/libc/xdr

Craig Rodrigues rodrigc at FreeBSD.org
Sun May 31 18:11:21 UTC 2015


Author: rodrigc
Date: Sun May 31 18:11:20 2015
New Revision: 283834
URL: https://svnweb.freebsd.org/changeset/base/283834

Log:
  Make x_putlong() and x_putbytes() prototypes match the
  prototypes in <rpc/xdr.h>

Modified:
  head/lib/libc/xdr/xdr_sizeof.c

Modified: head/lib/libc/xdr/xdr_sizeof.c
==============================================================================
--- head/lib/libc/xdr/xdr_sizeof.c	Sun May 31 18:08:58 2015	(r283833)
+++ head/lib/libc/xdr/xdr_sizeof.c	Sun May 31 18:11:20 2015	(r283834)
@@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
 
 /* ARGSUSED */
 static bool_t
-x_putlong(XDR *xdrs, long *longp)
+x_putlong(XDR *xdrs, const long *longp)
 {
 	xdrs->x_handy += BYTES_PER_XDR_UNIT;
 	return (TRUE);
@@ -55,7 +55,7 @@ x_putlong(XDR *xdrs, long *longp)
 
 /* ARGSUSED */
 static bool_t
-x_putbytes(XDR *xdrs, char *bp, u_int len)
+x_putbytes(XDR *xdrs, const char *bp, u_int len)
 {
 	xdrs->x_handy += len;
 	return (TRUE);


More information about the svn-src-head mailing list