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).
This commit is contained in:
John Birrell 1998-05-11 09:10:38 +00:00
parent fcf1880fa0
commit 9a6a1cbee4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35941

View File

@ -81,7 +81,7 @@ x_setpostn(xdrs, pos)
static int32_t * static int32_t *
x_inline(xdrs, len) x_inline(xdrs, len)
XDR *xdrs; XDR *xdrs;
int len; long len;
{ {
if (len == 0) { if (len == 0) {
return (NULL); return (NULL);
@ -89,7 +89,7 @@ x_inline(xdrs, len)
if (xdrs->x_op != XDR_ENCODE) { if (xdrs->x_op != XDR_ENCODE) {
return (NULL); return (NULL);
} }
if (len < (int) xdrs->x_base) { if (len < (long) xdrs->x_base) {
/* x_private was already allocated */ /* x_private was already allocated */
xdrs->x_handy += len; xdrs->x_handy += len;
return ((int32_t *) xdrs->x_private); return ((int32_t *) xdrs->x_private);