summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/atrun.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-06-17 22:11:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-06-17 22:11:56 +0000
commit9214f73daad94b13453dbdfbed05888adbea5aa8 (patch)
treed17fdbacd03e3ceb6b3868e49bbe0c5e828a25c0 /usr.sbin/cron/atrun.c
parent693b1cf701f384e2122f73bb66fb977442bdb4ca (diff)
UUpdate ISC copyright year to 2004
Remove unused macros Skip_Line and MkLower Remove trailing whitespace
Diffstat (limited to 'usr.sbin/cron/atrun.c')
-rw-r--r--usr.sbin/cron/atrun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c
index c7bb4fa4e98..e5b75144742 100644
--- a/usr.sbin/cron/atrun.c
+++ b/usr.sbin/cron/atrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atrun.c,v 1.12 2004/06/03 19:54:04 millert Exp $ */
+/* $OpenBSD: atrun.c,v 1.13 2004/06/17 22:11:55 millert Exp $ */
/*
* Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -21,7 +21,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static const char rcsid[] = "$OpenBSD: atrun.c,v 1.12 2004/06/03 19:54:04 millert Exp $";
+static const char rcsid[] = "$OpenBSD: atrun.c,v 1.13 2004/06/17 22:11:55 millert Exp $";
#endif
#include "cron.h"
@@ -386,7 +386,7 @@ run_job(atjob *job, char *atfile)
setproctitle("atrun %s", atfile);
pipe(output_pipe); /* child's stdout/stderr */
-
+
/* Fork again, child will run the job, parent will catch output. */
switch ((pid = fork())) {
case -1:
@@ -468,8 +468,8 @@ run_job(atjob *job, char *atfile)
setlogin(pw->pw_name);
#endif
if (setuid(pw->pw_uid)) {
- fprintf(stderr,
- "unable to set uid to %ld\n", (long)pw->pw_uid);
+ fprintf(stderr, "unable to set uid to %lu\n",
+ (unsigned long)pw->pw_uid);
_exit(ERROR_EXIT);
}