From: Andreas Jaeger Date: Mon, 22 Mar 2004 10:53:16 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/fedora-base~620 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6873f5c70648a7d05c58277e9e8e076460a01a4c;p=platform%2Fupstream%2Fglibc.git Update. 2004-03-22 Joseph S. Myers * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use casts as lvalues. 2004-03-22 Andreas Jaeger * elf/tst-dlmodcount.c (unload): Remove unused variable. * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam. --- diff --git a/ChangeLog b/ChangeLog index a8e8587..d72e9be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-03-22 Joseph S. Myers + + * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use + casts as lvalues. + +2004-03-22 Andreas Jaeger + + * elf/tst-dlmodcount.c (unload): Remove unused variable. + + * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam. + 2004-03-20 Roland McGrath * sysdeps/mach/hurd/dl-execstack.c: New file. diff --git a/elf/tst-dlmodcount.c b/elf/tst-dlmodcount.c index b48ed0e..9a1b6b9 100644 --- a/elf/tst-dlmodcount.c +++ b/elf/tst-dlmodcount.c @@ -85,8 +85,6 @@ load (const char *path) static void unload (const char *path, void *handle) { - int ret; - printf ("unloading `%s'\n", path); if (dlclose (handle) < 0) exit (2); diff --git a/sunrpc/rpc/xdr.h b/sunrpc/rpc/xdr.h index 4f240f2..64ac42f 100644 --- a/sunrpc/rpc/xdr.h +++ b/sunrpc/rpc/xdr.h @@ -262,10 +262,8 @@ struct xdr_discrim * and shouldn't be used any longer. Code which use this defines or longs * in the RPC code will not work on 64bit Solaris platforms ! */ -#define IXDR_GET_LONG(buf) \ - ((long)ntohl((u_long)*__extension__((u_int32_t*)(buf))++)) -#define IXDR_PUT_LONG(buf, v) \ - (*__extension__((u_int32_t*)(buf))++ = (long)htonl((u_long)(v))) +#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) +#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v))