summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/authunix_prot.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-10-02 19:00:56 +0000
committerpfg <pfg@FreeBSD.org>2012-10-02 19:00:56 +0000
commit801a570273e78622987dcab8701b018ed637f465 (patch)
treeaa44b26240a05517bc18100b05e2fdf7e2618175 /lib/libc/rpc/authunix_prot.c
parentb94c59684cdb3c9b3b7ba7b02eefbdc58be1e551 (diff)
downloadFreeBSD-src-801a570273e78622987dcab8701b018ed637f465.zip
FreeBSD-src-801a570273e78622987dcab8701b018ed637f465.tar.gz
RPC: Convert all uid and gid variables of the type uid_t and gid_t.
This matches what upstream (OpenSolaris) does. Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 project (libtirpc) MFC after: 3 days
Diffstat (limited to 'lib/libc/rpc/authunix_prot.c')
-rw-r--r--lib/libc/rpc/authunix_prot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/authunix_prot.c b/lib/libc/rpc/authunix_prot.c
index 7699e28..dd84810 100644
--- a/lib/libc/rpc/authunix_prot.c
+++ b/lib/libc/rpc/authunix_prot.c
@@ -60,7 +60,7 @@ xdr_authunix_parms(xdrs, p)
XDR *xdrs;
struct authunix_parms *p;
{
- int **paup_gids;
+ gid_t **paup_gids;
assert(xdrs != NULL);
assert(p != NULL);
@@ -69,8 +69,8 @@ xdr_authunix_parms(xdrs, p)
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_u_int(xdrs, &(p->aup_uid))
+ && xdr_u_int(xdrs, &(p->aup_gid))
&& xdr_array(xdrs, (char **) paup_gids,
&(p->aup_len), NGRPS, sizeof(int), (xdrproc_t)xdr_int) ) {
return (TRUE);
OpenPOWER on IntegriCloud