> matthew green <m...@eterna.com.au> wrote: > > > > /usr/src3/lib/libc/rpc/xdr_sizeof.c:112:12: error: > > > cast from pointer to integer of different size > > > /usr/src3/lib/libc/rpc/xdr_sizeof.c:124:18: error: > > > cast to pointer from integer of different size > > Does that fix it at yours? > > --- xdr_sizeof.c.orig 2011-07-04 15:16:46.000000000 +0200 > +++ xdr_sizeof.c 2011-07-04 15:17:01.000000000 +0200 > @@ -110,5 +110,5 @@ > return (NULL); > } > - if (len < (u_int)xdrs->x_base) { > + if (len < (u_int)(u_long)xdrs->x_base) { > /* x_private was already allocated */ > xdrs->x_handy += len; > @@ -122,5 +122,5 @@ > return (NULL); > } > - xdrs->x_base = (caddr_t) len; > + xdrs->x_base = (caddr_t)(u_long) len; > xdrs->x_handy += len; > return ((int32_t *) xdrs->x_private);
oh sorry, i meant to reply saying i'd done this. i comitted something like the above except s/u_long/uintptr_t/. thanks. .mrg.