summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1999-01-18 02:14:20 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1999-01-18 02:14:20 +0000
commita135bdb9a089d053c32961f1b675e630c37b1988 (patch)
tree69c0c01a525df6fae49f9fa7ea67878073e819f8
parent88658ab880a56d39a68ccdc47fa3307fc5f7aace (diff)
downloadsrc-test2-a135bdb9a089d053c32961f1b675e630c37b1988.tar.gz
src-test2-a135bdb9a089d053c32961f1b675e630c37b1988.zip
Use the correct type for uid and gid in struct passwd. Document it.
Notes
Notes: svn path=/head/; revision=42780
-rw-r--r--include/pwd.h4
-rw-r--r--lib/libc/gen/getpwent.34
2 files changed, 4 insertions, 4 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 895ced304efb..88d705d89621 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -71,8 +71,8 @@
struct passwd {
char *pw_name; /* user name */
char *pw_passwd; /* encrypted password */
- int pw_uid; /* user uid */
- int pw_gid; /* user gid */
+ uid_t pw_uid; /* user uid */
+ gid_t pw_gid; /* user gid */
time_t pw_change; /* password change time */
char *pw_class; /* user access class */
char *pw_gecos; /* Honeywell login info */
diff --git a/lib/libc/gen/getpwent.3 b/lib/libc/gen/getpwent.3
index 8772a429e7e4..94fc4063f30b 100644
--- a/lib/libc/gen/getpwent.3
+++ b/lib/libc/gen/getpwent.3
@@ -72,8 +72,8 @@ file
struct passwd {
char *pw_name; /* user name */
char *pw_passwd; /* encrypted password */
- int pw_uid; /* user uid */
- int pw_gid; /* user gid */
+ uid_t pw_uid; /* user uid */
+ gid_t pw_gid; /* user gid */
time_t pw_change; /* password change time */
char *pw_class; /* user access class */
char *pw_gecos; /* Honeywell login info */