diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 83b99afd2835..d5ea522ee158 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -36,7 +36,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)exec.c 5.2 (Berkeley) 3/13/91";*/ -static char rcsid[] = "$Id: exec.c,v 1.6 1993/09/23 23:32:19 mycroft Exp $"; +static char rcsid[] = "$Id: exec.c,v 1.7 1994/04/01 01:19:25 jtc Exp $"; #endif /* not lint */ /* @@ -501,7 +501,7 @@ loop: goto loop; /* Are you in this group too? */ { - int group_list[NGROUPS]; + gid_t group_list[NGROUPS]; int ngroups, i; ngroups = getgroups(NGROUPS, group_list); diff --git a/usr.bin/groups/groups.c b/usr.bin/groups/groups.c index 88880d334280..1330404b22c7 100644 --- a/usr.bin/groups/groups.c +++ b/usr.bin/groups/groups.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)groups.c 5.4 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: groups.c,v 1.2 1993/08/01 18:14:58 mycroft Exp $"; +static char rcsid[] = "$Id: groups.c,v 1.3 1994/04/01 01:19:16 jtc Exp $"; #endif /* not lint */ /* @@ -47,11 +47,13 @@ static char rcsid[] = "$Id: groups.c,v 1.2 1993/08/01 18:14:58 mycroft Exp $"; */ #include +#include +#include #include #include #include -int groups[NGROUPS]; +gid_t groups[NGROUPS]; main(argc, argv) int argc; diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index 9591c96e161a..8785469982a1 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)id.c 5.1 (Berkeley) 6/29/91";*/ -static char rcsid[] = "$Id: id.c,v 1.3 1993/12/09 10:28:26 cgd Exp $"; +static char rcsid[] = "$Id: id.c,v 1.4 1994/04/01 01:19:18 jtc Exp $"; #endif /* not lint */ #include @@ -160,7 +160,7 @@ sgroup(pw) } else { GR *gr; register int ngroups; - int groups[NGROUPS + 1]; + gid_t groups[NGROUPS + 1]; groups[0] = getgid(); ngroups = getgroups(NGROUPS, groups + 1) + 1; @@ -201,7 +201,7 @@ ugroup(pw) } } else { register int ngroups; - int groups[NGROUPS + 1]; + gid_t groups[NGROUPS + 1]; groups[0] = getgid(); ngroups = getgroups(NGROUPS, groups + 1) + 1; @@ -222,7 +222,8 @@ current() { GR *gr; PW *pw; - int id, eid, lastid, ngroups, groups[NGROUPS]; + int id, eid, lastid, ngroups; + gid_t groups[NGROUPS]; char *fmt; id = getuid(); diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 7022c3e58215..d568bbb8d3b7 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 5.12 (Berkeley) 9/27/90";*/ -static char rcsid[] = "$Id: quota.c,v 1.2 1993/08/01 18:10:00 mycroft Exp $"; +static char rcsid[] = "$Id: quota.c,v 1.3 1994/04/01 01:19:21 jtc Exp $"; #endif /* not lint */ /* @@ -58,6 +58,7 @@ static char rcsid[] = "$Id: quota.c,v 1.2 1993/08/01 18:10:00 mycroft Exp $"; #include #include #include +#include char *qfname = QUOTAFILENAME; char *qfextension[] = INITQFNAMES; @@ -76,7 +77,8 @@ int vflag; main(argc, argv) char *argv[]; { - int ngroups, gidset[NGROUPS]; + int ngroups; + gid_t gidset[NGROUPS]; int i, gflag = 0, uflag = 0; char ch; extern char *optarg; @@ -205,7 +207,8 @@ showgid(gid) u_long gid; { struct group *grp = getgrgid(gid); - int ngroups, gidset[NGROUPS]; + int ngroups; + gid_t gidset[NGROUPS]; register int i; char *name; @@ -236,7 +239,8 @@ showgrpname(name) char *name; { struct group *grp = getgrnam(name); - int ngroups, gidset[NGROUPS]; + int ngroups; + gid_t gidset[NGROUPS]; register int i; if (grp == NULL) { diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c index ba6e11cc5590..40952c3d5d6b 100644 --- a/usr.sbin/chown/chown.c +++ b/usr.sbin/chown/chown.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)chown.c 5.18 (Berkeley) 3/9/91";*/ -static char rcsid[] = "$Id: chown.c,v 1.3 1993/11/19 20:02:53 jtc Exp $"; +static char rcsid[] = "$Id: chown.c,v 1.4 1994/04/01 01:19:08 jtc Exp $"; #endif /* not lint */ #include @@ -192,7 +192,7 @@ chownerr(file) } /* check group membership; kernel just returns EPERM */ if (gid != -1 && ngroups == -1) { - int groups[NGROUPS]; + gid_t groups[NGROUPS]; ngroups = getgroups(NGROUPS, groups); while (--ngroups >= 0 && gid != groups[ngroups]);