summaryrefslogtreecommitdiff
path: root/tirpc
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@suse.de>2015-04-29 10:03:54 -0400
committerSteve Dickson <steved@redhat.com>2015-04-29 17:05:54 -0400
commit7864122e61ffe4db1aa8ace89117358a1e3a391b (patch)
tree3bfeaf473e11393a91e9300719e8744c7d4ae9ae /tirpc
parent1270f66c8bef9f94a06a4842364970a71985ff55 (diff)
downloadti-rpc-7864122e61ffe4db1aa8ace89117358a1e3a391b.tar.gz
Fix xdr_rpc* defines in xdr.h
The defines for xdr_rpc* in xdr.h are wrong. It could be very well that Solaris did strip the '_t' from xdr_u_int32_t, but Solaris has a xdr_u_int32 function, we don't have this. So all of this defines will lead to an unresolved symbol. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tirpc')
-rw-r--r--tirpc/rpc/xdr.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/tirpc/rpc/xdr.h b/tirpc/rpc/xdr.h
index 917c067..64069ab 100644
--- a/tirpc/rpc/xdr.h
+++ b/tirpc/rpc/xdr.h
@@ -222,15 +222,11 @@ xdr_putint32(XDR *xdrs, int32_t *ip)
(*(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.