diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-08 09:19:52 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-08 09:19:52 +0000 |
commit | e19a84f6db7a7520c2e17a7c214fabe9ae314379 (patch) | |
tree | c79d71e90dadd25230936126bbf7e15c2b658a96 /auth | |
parent | 0e02d215c1e6a044b7f149dfc13bfba62230cc2c (diff) |
2002-05-07 Roland McGrath <roland@frob.com>
* auth.c (S_auth_getids): u_int -> size_t
(S_auth_makeauth, S_auth_server_authenticate): Likewise.
(idvec_copyout): Fix argument type; make static.
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/auth/auth.c b/auth/auth.c index 330ddd07..e2628760 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -82,7 +82,8 @@ auth_port_to_handle (auth_t auth) /* id management. */ -inline void idvec_copyout (struct idvec *idvec, uid_t **ids, uid_t *nids) +static inline void +idvec_copyout (struct idvec *idvec, uid_t **ids, size_t *nids) { if (idvec->num > *nids) *ids = idvec->ids; @@ -99,13 +100,13 @@ inline void idvec_copyout (struct idvec *idvec, uid_t **ids, uid_t *nids) kern_return_t S_auth_getids (struct authhandle *auth, uid_t **euids, - u_int *neuids, + size_t *neuids, uid_t **auids, - u_int *nauids, + size_t *nauids, uid_t **egids, - u_int *negids, + size_t *negids, uid_t **agids, - u_int *nagids) + size_t *nagids) { if (! auth) return EOPNOTSUPP; @@ -118,17 +119,17 @@ S_auth_getids (struct authhandle *auth, /* Implement auth_makeauth as described in <hurd/auth.defs>. */ kern_return_t S_auth_makeauth (struct authhandle *auth, - mach_port_t *authpts, u_int nauths, - uid_t *euids, u_int neuids, - uid_t *auids, u_int nauids, - uid_t *egids, u_int negids, - uid_t *agids, u_int nagids, + mach_port_t *authpts, size_t nauths, + uid_t *euids, size_t neuids, + uid_t *auids, size_t nauids, + uid_t *egids, size_t negids, + uid_t *agids, size_t nagids, mach_port_t *newhandle) { struct authhandle *newauth, *auths[1 + nauths]; int hasroot = 0; error_t err; - u_int i, j; + size_t i, j; if (!auth) return EOPNOTSUPP; @@ -352,13 +353,13 @@ S_auth_server_authenticate (struct authhandle *serverauth, mach_port_t newport, mach_msg_type_name_t newport_type, uid_t **euids, - u_int *neuids, + size_t *neuids, uid_t **auids, - u_int *nauids, + size_t *nauids, uid_t **egids, - u_int *negids, + size_t *negids, uid_t **agids, - u_int *nagids) + size_t *nagids) { struct pending *u; struct authhandle *user; |