Fix signed/unsigned warnings in XDR
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sat, 26 Sep 2009 16:34:48 +0000 (17:34 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 28 Sep 2009 08:35:51 +0000 (01:35 -0700)
commit4c1c92c0bdd2b62845187c19a5f5821fe08cf47b
tree15355630539562054e705ffff9a0e15de1c2307f
parent4bbc4a5a1dc3c07ac130e9afdfab03ac5a245a16
Fix signed/unsigned warnings in XDR

Our xdr routines use the same native functions to read signed, and
unsigned integers from the wire. This leads to compiler warnings when
the unsigned versions of these functions are called. This patch always
casts to (afs_int32 *) when calling PUT_INT32 and GET_INT32, to resolve
these warnings

Reviewed-on: http://gerrit.openafs.org/507
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/rx/xdr.c
src/rx/xdr_int64.c