summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcallah <bcallah@openbsd.org>2015-03-19 21:22:15 +0000
committerbcallah <bcallah@openbsd.org>2015-03-19 21:22:15 +0000
commitcba31fd332e699b2f72f9bade2843fea30ecda3f (patch)
treeac4a61bb403c0744e59ed8e0eefbe091caf74e9c
parentProvide #defines for the mutex types as required by POSIX. Pointed out by (diff)
downloadwireguard-openbsd-cba31fd332e699b2f72f9bade2843fea30ecda3f.tar.xz
wireguard-openbsd-cba31fd332e699b2f72f9bade2843fea30ecda3f.zip
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@
-rw-r--r--usr.bin/mg/theo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/mg/theo.c b/usr.bin/mg/theo.c
index 9a41bc8767d..7c59eb38568 100644
--- a/usr.bin/mg/theo.c
+++ b/usr.bin/mg/theo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: theo.c,v 1.144 2015/03/16 13:47:48 bcallah Exp $ */
+/* $OpenBSD: theo.c,v 1.145 2015/03/19 21:22:15 bcallah Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -24,9 +24,15 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/queue.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "def.h"
-#include "kbd.h"
#include "funmap.h"
+#include "kbd.h"
void theo_init(void);
static int theo_analyze(int, int);