summaryrefslogtreecommitdiff
path: root/usr.bin/mg/buffer.c
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@cvs.openbsd.org>2015-03-19 21:22:16 +0000
committerBrian Callahan <bcallah@cvs.openbsd.org>2015-03-19 21:22:16 +0000
commit1fb5e81a161f71860b29d58d3c9bb9c453290e6c (patch)
tree95b4b30dc10beab20e60c839b36be84c9c0a4dc0 /usr.bin/mg/buffer.c
parent9abab06d318f6fc4ba2ddf1b70766fa48de4fe44 (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/buffer.c')
-rw-r--r--usr.bin/mg/buffer.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index ba5a11dd1f8..33e00d517e2 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.95 2015/03/16 13:47:48 bcallah Exp $ */
+/* $OpenBSD: buffer.c,v 1.96 2015/03/19 21:22:15 bcallah Exp $ */
/* This file is in the public domain. */
@@ -6,11 +6,18 @@
* Buffer handling.
*/
-#include "def.h"
-#include "kbd.h" /* needed for modes */
-
+#include <sys/queue.h>
+#include <errno.h>
#include <libgen.h>
+#include <signal.h>
#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "def.h"
+#include "kbd.h" /* needed for modes */
#ifndef DIFFTOOL
#define DIFFTOOL "/usr/bin/diff"