static bool_t
x_putlong(xdrs, longp)
XDR *xdrs;
+#ifdef __LP64__
+ int *longp;
+#else
long *longp;
+#endif
{
xdrs->x_handy += BYTES_PER_XDR_UNIT;
return (TRUE);
XDR *xdrs;
u_int len;
{
- long llen;
+ size_t llen;
if (len == 0) {
return (NULL);
llen = len;
- if (llen < xdrs->x_base) {
+ if (llen < (size_t)xdrs->x_base) {
/* x_private was already allocated */
xdrs->x_handy += llen;
return ((int32_t *) xdrs->x_private);
return;
}
+#ifdef __LP64__
+unsigned int
+#else
unsigned long
+#endif
xdr_sizeof(func, data)
xdrproc_t func;
void *data;
struct xdr_ops ops;
bool_t stat;
/* to stop ANSI-C compiler from complaining */
+#ifdef __LP64__
+ typedef bool_t (* dummyfunc1)(XDR *, int *);
+#else
typedef bool_t (* dummyfunc1)(XDR *, long *);
+#endif
typedef bool_t (* dummyfunc2)(XDR *, caddr_t, u_int);
ops.x_putlong = x_putlong;
x.x_private = (caddr_t) NULL;
x.x_base = (caddr_t) 0;
- stat = func(&x, data);
+ stat = func(&x, data, 0);
if (x.x_private)
free(x.x_private);
return (stat == TRUE ? (unsigned) x.x_handy: 0);