From e2a2029185c199c7c68e39df67aa68b32137facc Mon Sep 17 00:00:00 2001 From: markm Date: Tue, 22 Jan 2002 17:32:53 +0000 Subject: Use the proper type (gid_t) for (group)->gr_gid to be orthogonal with uid_t usage and (user)->pw_uid. PR: 3242 --- include/grp.h | 3 ++- include/unistd.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/grp.h b/include/grp.h index 9e5654a..2e245d5 100644 --- a/include/grp.h +++ b/include/grp.h @@ -36,6 +36,7 @@ * SUCH DAMAGE. * * @(#)grp.h 8.2 (Berkeley) 1/21/94 + * $FreeBSD$ */ #ifndef _GRP_H_ @@ -48,7 +49,7 @@ struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ - int gr_gid; /* group id */ + gid_t gr_gid; /* group id */ char **gr_mem; /* group members */ }; diff --git a/include/unistd.h b/include/unistd.h index bfad0f2..37dab67 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -140,7 +140,7 @@ int ftruncate __P((int, off_t)); #endif int getdomainname __P((char *, int)); int getdtablesize __P((void)); -int getgrouplist __P((const char *, int, int *, int *)); +int getgrouplist __P((const char *, gid_t, gid_t *, int *)); long gethostid __P((void)); int gethostname __P((char *, int)); int getlogin_r __P((char *, int)); @@ -154,7 +154,7 @@ int getresuid __P((uid_t *, uid_t *, uid_t *)); int getsid __P((pid_t _pid)); char *getusershell __P((void)); char *getwd __P((char *)); /* obsoleted by getcwd() */ -int initgroups __P((const char *, int)); +int initgroups __P((const char *, gid_t)); int iruserok __P((unsigned long, int, const char *, const char *)); int iruserok_sa __P((const void *, int, int, const char *, const char *)); int issetugid __P((void)); -- cgit v1.1