diff options
author | Brian Callahan <bcallah@cvs.openbsd.org> | 2015-03-19 21:22:16 +0000 |
---|---|---|
committer | Brian Callahan <bcallah@cvs.openbsd.org> | 2015-03-19 21:22:16 +0000 |
commit | 1fb5e81a161f71860b29d58d3c9bb9c453290e6c (patch) | |
tree | 95b4b30dc10beab20e60c839b36be84c9c0a4dc0 /usr.bin/mg/autoexec.c | |
parent | 9abab06d318f6fc4ba2ddf1b70766fa48de4fe44 (diff) |
Clean up the includes in mg.
This does the following:
Moves all POSIX headers from sysdef.h into the individual .c files so that
each file now only includes what it needs. All headers are properly sorted.
Moves the remainder of sysdef.h to other files (mostly def.h) and deletes
sysdef.h now that it's no longer contains anything.
Tweak a comment that references sysdef.h so that it no longer does that.
ok florian@
Diffstat (limited to 'usr.bin/mg/autoexec.c')
-rw-r--r-- | usr.bin/mg/autoexec.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/mg/autoexec.c b/usr.bin/mg/autoexec.c index 49a9f6e6f27..43d52182d44 100644 --- a/usr.bin/mg/autoexec.c +++ b/usr.bin/mg/autoexec.c @@ -1,12 +1,17 @@ -/* $OpenBSD: autoexec.c,v 1.15 2014/10/11 03:03:44 doug Exp $ */ +/* $OpenBSD: autoexec.c,v 1.16 2015/03/19 21:22:15 bcallah Exp $ */ /* this file is in the public domain */ /* Author: Vincent Labrecque <vincent@openbsd.org> April 2002 */ +#include <sys/queue.h> +#include <fnmatch.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + #include "def.h" #include "funmap.h" -#include <fnmatch.h> - struct autoexec { SLIST_ENTRY(autoexec) next; /* link in the linked list */ const char *pattern; /* Pattern to match to filenames */ |