From 0e5d0c0ad882cbd74e57404a617ad042814bcff0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 28 Jan 2001 17:53:49 +0000 Subject: [PATCH] Update. * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning. * sunrpc/xdr_sizeof.c (x_inline): Likewise. --- ChangeLog | 3 +++ sunrpc/xdr_rec.c | 2 +- sunrpc/xdr_sizeof.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4105018..4f619a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-01-28 Ulrich Drepper + * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning. + * sunrpc/xdr_sizeof.c (x_inline): Likewise. + * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include . * conform/conformtest.pl: Define $mustprepend{"stdio.h"}. diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c index a3b90ce..7d56119 100644 --- a/sunrpc/xdr_rec.c +++ b/sunrpc/xdr_rec.c @@ -304,7 +304,7 @@ xdrrec_getpos (const XDR *xdrs) RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private; long pos; - pos = __lseek ((int) rstrm->tcp_handle, (long) 0, 1); + pos = __lseek ((int) (long) rstrm->tcp_handle, (long) 0, 1); if (pos != -1) switch (xdrs->x_op) { diff --git a/sunrpc/xdr_sizeof.c b/sunrpc/xdr_sizeof.c index cbf8bdf..76b53d9 100644 --- a/sunrpc/xdr_sizeof.c +++ b/sunrpc/xdr_sizeof.c @@ -93,7 +93,7 @@ x_inline (XDR *xdrs, int len) xdrs->x_base = 0; return NULL; } - xdrs->x_base = (void *) len; + xdrs->x_base = (void *) (long) len; xdrs->x_handy += len; return (int32_t *) xdrs->x_private; } -- 2.7.4