From 5e254dfcd4418d04a166b769c889ed8b2b0b79fa Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 29 Jul 2002 00:35:49 +0000 Subject: [PATCH] jeez, this program included almost everything in /usr/include! --- libexec/atrun/atrun.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index cec823024850..af2026ec1254 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -1,4 +1,4 @@ -/* $NetBSD: atrun.c,v 1.9 2002/06/06 09:29:31 martin Exp $ */ +/* $NetBSD: atrun.c,v 1.10 2002/07/29 00:35:49 christos Exp $ */ /* * atrun.c - run jobs queued by at; run with root privileges. @@ -26,27 +26,22 @@ */ /* System Headers */ - #include -#include #include -#include + #include -#include #include +#include #include -#include -#include -#include -#include #include #include #include +#include #include #include #include -#include - +#include +#include #include /* Local headers */ @@ -62,7 +57,7 @@ static char *namep; #if 0 static char rcsid[] = "$OpenBSD: atrun.c,v 1.7 1997/09/08 22:12:10 millert Exp $"; #else -__RCSID("$NetBSD: atrun.c,v 1.9 2002/06/06 09:29:31 martin Exp $"); +__RCSID("$NetBSD: atrun.c,v 1.10 2002/07/29 00:35:49 christos Exp $"); #endif static int debug = 0; @@ -81,7 +76,7 @@ perr(a) const char *a; { if (debug) - perror(a); + warn(a); else syslog(LOG_ERR, "%s: %m", a); @@ -93,8 +88,7 @@ perr2(a, b) char *a, *b; { if (debug) { - (void)fputs(a, stderr); - perror(b); + warn("%s%s", a, b); } else syslog(LOG_ERR, "%s%s: %m", a, b);