summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
committerstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
commitd00a4eaaead4ab4b18854f36695ffdd9a4a08df8 (patch)
treeb1445db5fc9310748356059b2012b0bbf474cc63 /usr.bin
parent19377ec887db0bddf61b00fed90f57dfcb29ee6a (diff)
downloadFreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.zip
FreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.tar.gz
Pass an array of gid_t rather than an array of int to getgroups().
PR: 56646
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/id/id.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index f8fba74..085ef7c 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -274,7 +274,8 @@ user(struct passwd *pw)
{
struct group *gr;
const char *fmt;
- int cnt, gid, lastgid, ngroups, groups[NGROUPS + 1];
+ gid_t gid, lastgid, groups[NGROUPS + 1];
+ int cnt, ngroups;
(void)printf("uid=%u(%s)", pw->pw_uid, pw->pw_name);
gid = pw->pw_gid;
OpenPOWER on IntegriCloud