diff options
author | des <des@FreeBSD.org> | 1999-01-18 02:14:20 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1999-01-18 02:14:20 +0000 |
commit | 9dabb14045fe74d9e0f500999f57f5eb7d4b5b0b (patch) | |
tree | 3ea043d4ad9462da228cee31593c9d86a46f34b0 | |
parent | ac68ffc018823cea35a85329ca748080203987a0 (diff) | |
download | FreeBSD-src-9dabb14045fe74d9e0f500999f57f5eb7d4b5b0b.zip FreeBSD-src-9dabb14045fe74d9e0f500999f57f5eb7d4b5b0b.tar.gz |
Use the correct type for uid and gid in struct passwd. Document it.
-rw-r--r-- | include/pwd.h | 4 | ||||
-rw-r--r-- | lib/libc/gen/getpwent.3 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/pwd.h b/include/pwd.h index 895ced3..88d705d 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 8772a42..94fc406 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 */ |