diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-10-04 04:15:18 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-10-04 04:15:18 +0000 |
commit | 0d1040e5e1e65b2a3f6058a5e6bd3a7645801f13 (patch) | |
tree | 2cf66142fc4c43a21adf47bce41c08fbc273ddce /include | |
parent | 0eb81626239885be27cfe3975d34bd62d106e3fa (diff) | |
download | src-0d1040e5e1e65b2a3f6058a5e6bd3a7645801f13.tar.gz src-0d1040e5e1e65b2a3f6058a5e6bd3a7645801f13.zip |
rpc: convert all uid and gid variables to u_int.
After further discussion, instead of pretending to use
uid_t and gid_t as upstream Solaris and linux try to, we
are better using u_int, which is in fact what the code
can handle and best approaches the range of values used
by uid and gid.
Discussed with: bde
Reviewed by: bde
Notes
Notes:
svn path=/head/; revision=241181
Diffstat (limited to 'include')
-rw-r--r-- | include/rpc/auth.h | 8 | ||||
-rw-r--r-- | include/rpc/auth_unix.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 5833c02e429f..b19addc87d63 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -243,13 +243,13 @@ __END_DECLS * System style authentication * AUTH *authunix_create(machname, uid, gid, len, aup_gids) * char *machname; - * uid_t uid; - * gid_t gid; + * u_int uid; + * u_int gid; * int len; - * gid_t *aup_gids; + * u_int *aup_gids; */ __BEGIN_DECLS -extern AUTH *authunix_create(char *, uid_t, gid_t, int, gid_t *); +extern AUTH *authunix_create(char *, u_int, u_int, int, u_int *); extern AUTH *authunix_create_default(void); /* takes no parameters */ extern AUTH *authnone_create(void); /* takes no parameters */ __END_DECLS diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h index 08e156900db1..b005bac8a51a 100644 --- a/include/rpc/auth_unix.h +++ b/include/rpc/auth_unix.h @@ -60,10 +60,10 @@ struct authunix_parms { u_long aup_time; char *aup_machname; - uid_t aup_uid; - gid_t aup_gid; + u_int aup_uid; + u_int aup_gid; u_int aup_len; - gid_t *aup_gids; + u_int *aup_gids; }; #define authsys_parms authunix_parms |