summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-04-07 10:05:29 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 03:08:23 -0700
commitd9e256b0e4203a7f79f862ecc83c509e516f0e14 (patch)
tree0dc383779185951442463b3d7dc082d8be162140 /xlators/nfs/lib/src
parent24591071a3c6a4362b8bb6818f42d3b7ec176342 (diff)
NFS: type fixes: sanitize rpcgen generated typedefs
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 399 (NFS translator with Mount v3 and NFS v3 support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=399
Diffstat (limited to 'xlators/nfs/lib/src')
-rw-r--r--xlators/nfs/lib/src/xdr-nfs3.c4
-rw-r--r--xlators/nfs/lib/src/xdr-nfs3.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/xlators/nfs/lib/src/xdr-nfs3.c b/xlators/nfs/lib/src/xdr-nfs3.c
index 6a8fe48a47e..7d8075a56ca 100644
--- a/xlators/nfs/lib/src/xdr-nfs3.c
+++ b/xlators/nfs/lib/src/xdr-nfs3.c
@@ -39,7 +39,7 @@ xdr_int64 (XDR *xdrs, int64 *objp)
bool_t
xdr_uint32 (XDR *xdrs, uint32 *objp)
{
- if (!xdr_u_long (xdrs, objp))
+ if (!xdr_uint32_t (xdrs, objp))
return FALSE;
return TRUE;
}
@@ -47,7 +47,7 @@ xdr_uint32 (XDR *xdrs, uint32 *objp)
bool_t
xdr_int32 (XDR *xdrs, int32 *objp)
{
- if (!xdr_long (xdrs, objp))
+ if (!xdr_int32_t (xdrs, objp))
return FALSE;
return TRUE;
}
diff --git a/xlators/nfs/lib/src/xdr-nfs3.h b/xlators/nfs/lib/src/xdr-nfs3.h
index 8223def1ffa..fe4046584ff 100644
--- a/xlators/nfs/lib/src/xdr-nfs3.h
+++ b/xlators/nfs/lib/src/xdr-nfs3.h
@@ -44,8 +44,8 @@
typedef u_quad_t uint64;
typedef quad_t int64;
-typedef u_long uint32;
-typedef long int32;
+typedef uint32_t uint32;
+typedef int32_t int32;
typedef char *filename3;
typedef char *nfspath3;
typedef uint64 fileid3;