Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Dec 14, 1998
1 parent af6c1b2 commit c870d24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
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.

1998-12-08 H.J. Lu <hjl@gnu.org>

* sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Don't clear
Expand Down
5 changes: 3 additions & 2 deletions sunrpc/rpc/xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit c870d24

Please sign in to comment.