Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src
In article <1k3w077.dr9oh1asic2oM%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>matthew green <mrg%eterna.com.au@localhost> 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);
>
intptr_t please.
christos
Home |
Main Index |
Thread Index |
Old Index