about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/xdr_rec.c2
-rw-r--r--sunrpc/xdr_sizeof.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c
index a3b90ce41c..7d5611961a 100644
--- a/sunrpc/xdr_rec.c
+++ b/sunrpc/xdr_rec.c
@@ -304,7 +304,7 @@ xdrrec_getpos (const XDR *xdrs)
   RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
   long pos;
 
-  pos = __lseek ((int) rstrm->tcp_handle, (long) 0, 1);
+  pos = __lseek ((int) (long) rstrm->tcp_handle, (long) 0, 1);
   if (pos != -1)
     switch (xdrs->x_op)
       {
diff --git a/sunrpc/xdr_sizeof.c b/sunrpc/xdr_sizeof.c
index cbf8bdfd1e..76b53d9d57 100644
--- a/sunrpc/xdr_sizeof.c
+++ b/sunrpc/xdr_sizeof.c
@@ -93,7 +93,7 @@ x_inline (XDR *xdrs, int len)
 	  xdrs->x_base = 0;
 	  return NULL;
 	}
-      xdrs->x_base = (void *) len;
+      xdrs->x_base = (void *) (long) len;
       xdrs->x_handy += len;
       return (int32_t *) xdrs->x_private;
     }