Silence "which" being verbose in some distros. (eg. Mandriva's which spawns "foobar was not found in /bin:/usr/bin:...." directly on stderr)
1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/rpc/xdr.h.diff?r1=1.27&r2=1.28&cvsroot=glibc
2 (but see also http://sources.redhat.com/ml/libc-alpha/2004-03/msg00267.html
3 and http://gcc.gnu.org/ml/gcc-patches/2004-03/msg02056.html)
7 rpc_cmsg.c: In function `xdr_callmsg':
8 rpc_cmsg.c:70: error: invalid lvalue in increment
9 rpc_cmsg.c:71: error: invalid lvalue in increment
10 rpc_cmsg.c:74: error: invalid lvalue in increment
11 rpc_cmsg.c:77: error: invalid lvalue in increment
12 rpc_cmsg.c:78: error: invalid lvalue in increment
13 rpc_cmsg.c:79: error: invalid lvalue in increment
14 rpc_cmsg.c:81: error: invalid lvalue in increment
15 rpc_cmsg.c:89: error: invalid lvalue in increment
16 rpc_cmsg.c:106: error: invalid lvalue in increment
17 rpc_cmsg.c:107: error: invalid lvalue in increment
18 rpc_cmsg.c:112: error: invalid lvalue in increment
19 rpc_cmsg.c:117: error: invalid lvalue in increment
20 rpc_cmsg.c:118: error: invalid lvalue in increment
21 rpc_cmsg.c:119: error: invalid lvalue in increment
22 rpc_cmsg.c:121: error: invalid lvalue in increment
23 rpc_cmsg.c:160: error: invalid lvalue in increment
25 ===================================================================
26 RCS file: /cvs/glibc/libc/sunrpc/rpc/xdr.h,v
27 retrieving revision 1.27
28 retrieving revision 1.28
30 --- libc/sunrpc/rpc/xdr.h 2002/12/16 02:05:49 1.27
31 +++ libc/sunrpc/rpc/xdr.h 2004/03/22 10:52:33 1.28
33 * and shouldn't be used any longer. Code which use this defines or longs
34 * in the RPC code will not work on 64bit Solaris platforms !
36 -#define IXDR_GET_LONG(buf) \
37 - ((long)ntohl((u_long)*__extension__((u_int32_t*)(buf))++))
38 -#define IXDR_PUT_LONG(buf, v) \
39 - (*__extension__((u_int32_t*)(buf))++ = (long)htonl((u_long)(v)))
40 +#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))
41 +#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))
42 #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf))
43 #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v))