diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-12-14 21:59:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-12-14 21:59:20 +0000 |
commit | c870d249d294c92c677e09437a53873cea563b8b (patch) | |
tree | 30b3a404f18bd9255df3badefde83c754c6017c1 /sunrpc/rpc/xdr.h | |
parent | af6c1b27acf52a85311802ba8068cc74d9a327ba (diff) | |
download | glibc-c870d249d294c92c677e09437a53873cea563b8b.tar.gz glibc-c870d249d294c92c677e09437a53873cea563b8b.tar.xz glibc-c870d249d294c92c677e09437a53873cea563b8b.zip |
Update.
1998-12-14 Ulrich Drepper <drepper@cygnus.com> * sunrpc/rpc/xdr.h (IXDR_GET_INT32): Case pointer before reading from it. (IXDR_PUT_INT32): Likewise for writing.
Diffstat (limited to 'sunrpc/rpc/xdr.h')
-rw-r--r-- | sunrpc/rpc/xdr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sunrpc/rpc/xdr.h b/sunrpc/rpc/xdr.h index cd28717221..192a9a8712 100644 --- a/sunrpc/rpc/xdr.h +++ b/sunrpc/rpc/xdr.h @@ -249,8 +249,9 @@ struct xdr_discrim * of external representation. */ -#define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) -#define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)v)) +#define IXDR_GET_INT32(buf) ((int32_t)ntohl(*((uint32_t *) buf)++)) +#define IXDR_PUT_INT32(buf, v) (*((int32_t *) buf)++ \ + = (int32_t)htonl((uint32_t)v)) #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_INT32((buf), ((int32_t)(v))) |