summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-11 09:10:38 +0000
committerjb <jb@FreeBSD.org>1998-05-11 09:10:38 +0000
commit7cc9edd4639c285fa5c945ccd281d0f79c7c9601 (patch)
tree0d306c32f3e68f1b6189d0f23de2dcd426d884c9 /lib/libc/xdr
parent5e821e40bcda4e807fe3192ac3cd36d7399a23b4 (diff)
downloadFreeBSD-src-7cc9edd4639c285fa5c945ccd281d0f79c7c9601.zip
FreeBSD-src-7cc9edd4639c285fa5c945ccd281d0f79c7c9601.tar.gz
Cast a pointer to a long, not an int and make the arg passed to the function
a long too (it does have a proper prototype).
Diffstat (limited to 'lib/libc/xdr')
-rw-r--r--lib/libc/xdr/xdr_sizeof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/xdr/xdr_sizeof.c b/lib/libc/xdr/xdr_sizeof.c
index e9c6a19..5a4c1a7 100644
--- a/lib/libc/xdr/xdr_sizeof.c
+++ b/lib/libc/xdr/xdr_sizeof.c
@@ -81,7 +81,7 @@ x_setpostn(xdrs, pos)
static int32_t *
x_inline(xdrs, len)
XDR *xdrs;
- int len;
+ long len;
{
if (len == 0) {
return (NULL);
@@ -89,7 +89,7 @@ x_inline(xdrs, len)
if (xdrs->x_op != XDR_ENCODE) {
return (NULL);
}
- if (len < (int) xdrs->x_base) {
+ if (len < (long) xdrs->x_base) {
/* x_private was already allocated */
xdrs->x_handy += len;
return ((int32_t *) xdrs->x_private);
OpenPOWER on IntegriCloud