From d4e3872db360df1cf2b9e0d72007e42cf5d6eed7 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 3 Mar 2010 21:47:25 +0000 Subject: MFC r201959 Use the correct types to store uids and gids in the credential cache and eliminate an inappropriate use of NGROUPS. --- lib/libc/rpc/svc_auth_des.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libc/rpc/svc_auth_des.c b/lib/libc/rpc/svc_auth_des.c index 84f1e19a1759..de4d1b4069f2 100644 --- a/lib/libc/rpc/svc_auth_des.c +++ b/lib/libc/rpc/svc_auth_des.c @@ -449,10 +449,10 @@ cache_spot(key, name, timestamp) #define INVALID -1 /* grouplen, if cache entry is invalid */ struct bsdcred { - short uid; /* cached uid */ - short gid; /* cached gid */ - short grouplen; /* length of cached groups */ - short groups[NGROUPS]; /* cached groups */ + uid_t uid; /* cached uid */ + gid_t gid; /* cached gid */ + int grouplen; /* length of cached groups */ + gid_t groups[NGRPS]; /* cached groups */ }; /* -- cgit v1.3