diff options
author | jb <jb@FreeBSD.org> | 2007-11-20 01:51:20 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-20 01:51:20 +0000 |
commit | 19b2cc7319ecf8a74714f441340bce720cd7ac94 (patch) | |
tree | feb68916ecfeb3b0b723c598f93ca6744ffaca06 /lib/libc/rpc/authunix_prot.c | |
parent | baefe019d5c0db9d2d1f01b2bf872db3d31a0dff (diff) | |
download | FreeBSD-src-19b2cc7319ecf8a74714f441340bce720cd7ac94.zip FreeBSD-src-19b2cc7319ecf8a74714f441340bce720cd7ac94.tar.gz |
Use intermediate pointers to avoid strict alias type check failures
using gcc 4.2. This is required for tinderbox which doesn't have
-fno-strict-aliasing in it's custom CFLAGS.
Diffstat (limited to 'lib/libc/rpc/authunix_prot.c')
-rw-r--r-- | lib/libc/rpc/authunix_prot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/rpc/authunix_prot.c b/lib/libc/rpc/authunix_prot.c index 441ba40..7699e28 100644 --- a/lib/libc/rpc/authunix_prot.c +++ b/lib/libc/rpc/authunix_prot.c @@ -60,15 +60,18 @@ xdr_authunix_parms(xdrs, p) XDR *xdrs; struct authunix_parms *p; { + int **paup_gids; assert(xdrs != NULL); assert(p != NULL); + paup_gids = &p->aup_gids; + if (xdr_u_long(xdrs, &(p->aup_time)) && xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME) && xdr_int(xdrs, &(p->aup_uid)) && xdr_int(xdrs, &(p->aup_gid)) - && xdr_array(xdrs, (caddr_t *)&(p->aup_gids), + && xdr_array(xdrs, (char **) paup_gids, &(p->aup_len), NGRPS, sizeof(int), (xdrproc_t)xdr_int) ) { return (TRUE); } |