diff options
author | charnier <charnier@FreeBSD.org> | 2003-09-07 16:43:53 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-09-07 16:43:53 +0000 |
commit | 8f5e31de0a4e03de2709c8e9d487bf398f9ac709 (patch) | |
tree | ee010fd5e15f9df6aece9a4666db375903448335 /usr.sbin | |
parent | 289099a79069a348e1d582c29dd1ee4bdf5dc236 (diff) | |
download | FreeBSD-src-8f5e31de0a4e03de2709c8e9d487bf398f9ac709.zip FreeBSD-src-8f5e31de0a4e03de2709c8e9d487bf398f9ac709.tar.gz |
Use uid_t.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/chown/chown.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c index 70eec8c..7e28473 100644 --- a/usr.sbin/chown/chown.c +++ b/usr.sbin/chown/chown.c @@ -42,6 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94"; #endif /* not lint */ #endif + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -63,7 +64,7 @@ __FBSDID("$FreeBSD$"); void a_gid(const char *); void a_uid(const char *); void chownerr(const char *); -u_long id(const char *, const char *); +uid_t id(const char *, const char *); void usage(void); uid_t uid; @@ -248,10 +249,10 @@ a_uid(const char *s) uid = ((pw = getpwnam(s)) != NULL) ? pw->pw_uid : id(s, "user"); } -u_long +uid_t id(const char *name, const char *type) { - u_long val; + uid_t val; char *ep; /* |