summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/do_command.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-11-04 20:28:17 +0000
committermillert <millert@openbsd.org>2015-11-04 20:28:17 +0000
commitfa575ea25f16fe17873684528f7ccc9edbddf54b (patch)
tree28f53ec8e65f405af71ba942aa7500cf05850ac8 /usr.sbin/cron/do_command.c
parentSimplify packet option handling since we are only setting one option (diff)
downloadwireguard-openbsd-fa575ea25f16fe17873684528f7ccc9edbddf54b.tar.xz
wireguard-openbsd-fa575ea25f16fe17873684528f7ccc9edbddf54b.zip
Change cron from including all headers in every file to only including
what each .c file needs. I have not removed cron.h since it will be used in a future clean up of the cron's .h files. OK nicm@
Diffstat (limited to 'usr.sbin/cron/do_command.c')
-rw-r--r--usr.sbin/cron/do_command.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index 9aba71f3e3a..a3218c9a776 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: do_command.c,v 1.51 2015/10/29 22:41:27 millert Exp $ */
+/* $OpenBSD: do_command.c,v 1.52 2015/11/04 20:28:17 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -17,9 +17,31 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "cron.h"
+#include <sys/types.h>
+#include <sys/wait.h>
+
+#include <bitstring.h> /* for structs.h */
+#include <bsd_auth.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <limits.h>
+#include <login_cap.h>
+#include <pwd.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <time.h> /* for structs.h */
+#include <unistd.h>
#include <vis.h>
+#include "config.h"
+#include "pathnames.h"
+#include "macros.h"
+#include "structs.h"
+#include "funcs.h"
+
static void child_process(entry *, user *);
void