summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.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/auth_unix.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/auth_unix.c')
-rw-r--r--lib/libc/rpc/auth_unix.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c
index c0d2548..4d7a89b 100644
--- a/lib/libc/rpc/auth_unix.c
+++ b/lib/libc/rpc/auth_unix.c
@@ -94,10 +94,10 @@ struct audata {
AUTH *
authunix_create(machname, uid, gid, len, aup_gids)
char *machname;
- int uid;
- int gid;
+ uid_t uid;
+ gid_t gid;
int len;
- int *aup_gids;
+ gid_t *aup_gids;
{
struct authunix_parms aup;
char mymem[MAX_AUTH_BYTES];
@@ -207,9 +207,7 @@ authunix_create_default()
abort();
if (ngids > NGRPS)
ngids = NGRPS;
- /* XXX: interface problem; those should all have been unsigned */
- auth = authunix_create(machname, (int)uid, (int)gid, ngids,
- (int *)gids);
+ auth = authunix_create(machname, uid, gid, ngids, gids);
free(gids);
return (auth);
}
OpenPOWER on IntegriCloud