summaryrefslogtreecommitdiff
path: root/usr.bin/calendar
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:07:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:07:23 +0000
commitb2e9efd3fb05b85dc11b3ea795320abfc2e86feb (patch)
treec4b3addfcfb980cd851b897d097c156230fd7a41 /usr.bin/calendar
parent66b10192a6c1f61e3bd3d3645bf3178ae7844f41 (diff)
uid_t and gid_t are unsigned
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r--usr.bin/calendar/calendar.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/calendar/calendar.c b/usr.bin/calendar/calendar.c
index d9288ef3ffc..9ea6589bdd3 100644
--- a/usr.bin/calendar/calendar.c
+++ b/usr.bin/calendar/calendar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: calendar.c,v 1.17 2002/02/16 21:27:44 millert Exp $ */
+/* $OpenBSD: calendar.c,v 1.18 2002/06/23 03:07:21 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -43,7 +43,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94";
#else
-static char rcsid[] = "$OpenBSD: calendar.c,v 1.17 2002/02/16 21:27:44 millert Exp $";
+static char rcsid[] = "$OpenBSD: calendar.c,v 1.18 2002/06/23 03:07:21 deraadt Exp $";
#endif
#endif /* not lint */
@@ -190,8 +190,8 @@ main(argc, argv)
(void)setlocale(LC_ALL, "");
if (setusercontext(NULL, pw, pw->pw_uid,
LOGIN_SETALL ^ LOGIN_SETLOGIN))
- err(1, "unable to set user context (uid %d)",
- (int)pw->pw_uid);
+ err(1, "unable to set user context (uid %u)",
+ pw->pw_uid);
if (acstat) {
if (chdir(pw->pw_dir) ||
stat(calendarFile, &sbuf) != 0 ||
@@ -233,11 +233,11 @@ main(argc, argv)
* if there's only a zombie now.
*/
(void)kill(kid, SIGTERM);
- warnx("uid %d did not finish in time", (int)pw->pw_uid);
+ warnx("uid %u did not finish in time", pw->pw_uid);
}
if (time(NULL) - t >= SECSPERDAY)
- errx(2, "'calendar -a' took more than a day; stopped at uid %d",
- (int)pw->pw_uid);
+ errx(2, "'calendar -a' took more than a day; stopped at uid %u",
+ pw->pw_uid);
}
for (;;) {
deadkid = waitpid(-1, &kidstat, WNOHANG);