Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/rpc s/not sure why// and make these work :-)



details:   https://anonhg.NetBSD.org/src/rev/a42ba196dd16
branches:  trunk
changeset: 826119:a42ba196dd16
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 16 08:35:48 2017 +0000

description:
s/not sure why// and make these work :-)

diffstat:

 include/rpc/xdr.h |  16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diffs (30 lines):

diff -r 02e1599fdf75 -r a42ba196dd16 include/rpc/xdr.h
--- a/include/rpc/xdr.h Tue Aug 15 22:23:09 2017 +0000
+++ b/include/rpc/xdr.h Wed Aug 16 08:35:48 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xdr.h,v 1.29 2016/01/23 02:34:09 dholland Exp $        */
+/*     $NetBSD: xdr.h,v 1.30 2017/08/16 08:35:48 christos Exp $        */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -213,15 +213,11 @@
                (*(xdrs)->x_ops->x_control)(xdrs, req, op)
 #define xdr_control(xdrs, req, op) XDR_CONTROL(xdrs, req, op)
 
-/*
- * Solaris strips the '_t' from these types -- not sure why.
- * But, let's be compatible.
- */
-#define xdr_rpcvers(xdrs, versp) xdr_u_int32(xdrs, versp)
-#define xdr_rpcprog(xdrs, progp) xdr_u_int32(xdrs, progp)
-#define xdr_rpcproc(xdrs, procp) xdr_u_int32(xdrs, procp)
-#define xdr_rpcprot(xdrs, protp) xdr_u_int32(xdrs, protp)
-#define xdr_rpcport(xdrs, portp) xdr_u_int32(xdrs, portp)
+#define xdr_rpcvers(xdrs, versp) xdr_u_int32_t(xdrs, versp)
+#define xdr_rpcprog(xdrs, progp) xdr_u_int32_t(xdrs, progp)
+#define xdr_rpcproc(xdrs, procp) xdr_u_int32_t(xdrs, procp)
+#define xdr_rpcprot(xdrs, protp) xdr_u_int32_t(xdrs, protp)
+#define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp)
 
 /*
  * Support struct for discriminated unions.



Home | Main Index | Thread Index | Old Index