diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-08-06 20:41:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-08-06 20:41:09 +0000 |
commit | abdab9264887b198168dac150a9bbff44a774868 (patch) | |
tree | 26c311697fe239df4698e550f705fd8ef5a9a932 /usr.sbin/quot/quot.c | |
parent | cde63a0b937f284da8b2903ae196fc5bfb998ea8 (diff) |
uid_t and gid_t, and use %u
Diffstat (limited to 'usr.sbin/quot/quot.c')
-rw-r--r-- | usr.sbin/quot/quot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index cc5857abded..5229b7024f5 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quot.c,v 1.5 1998/07/08 19:43:23 millert Exp $ */ +/* $OpenBSD: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $ */ /* $NetBSD: quot.c,v 1.7.4.1 1996/05/31 18:06:36 jtc Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: quot.c,v 1.5 1998/07/08 19:43:23 millert Exp $"; +static char rcsid[] = "$Id: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -244,7 +244,8 @@ user(uid) if (!(pwd = getpwuid(uid))) { if (usr->name = (char *)malloc(7)) - sprintf(usr->name, "#%d", uid); + sprintf(usr->name, "#%u", + uid); } else { if (usr->name = (char *) malloc(strlen(pwd->pw_name) + 1)) |