diff options
author | markm <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 |
commit | e2a2029185c199c7c68e39df67aa68b32137facc (patch) | |
tree | 4fa4107bd9dc143cbf75e44ad9d40c4184b8784e /include | |
parent | 83a72ec01c6326a9a3a9f6e66192863bcbd4b8e4 (diff) | |
download | FreeBSD-src-e2a2029185c199c7c68e39df67aa68b32137facc.zip FreeBSD-src-e2a2029185c199c7c68e39df67aa68b32137facc.tar.gz |
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
with uid_t usage and (user)->pw_uid.
PR: 3242
Diffstat (limited to 'include')
-rw-r--r-- | include/grp.h | 3 | ||||
-rw-r--r-- | include/unistd.h | 4 |
2 files changed, 4 insertions, 3 deletions
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)); |