summaryrefslogtreecommitdiffstats
path: root/lib/libedit/tty.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-03-20 22:57:59 +0000
committerschwarze <schwarze@openbsd.org>2016-03-20 22:57:59 +0000
commit5564fb9496c6db6caa72a9dcf75b20efbd24a525 (patch)
tree400bec81eae63c30d138408fbf5bb5b579f7a450 /lib/libedit/tty.c
parentsupport WIDECHAR; (diff)
downloadwireguard-openbsd-5564fb9496c6db6caa72a9dcf75b20efbd24a525.tar.xz
wireguard-openbsd-5564fb9496c6db6caa72a9dcf75b20efbd24a525.zip
Cleanup of private header inclusion:
1. Do not include private headers from "chared.h", "hist.h", "prompt.h", "refresh.h", "search.h", "sig.h", "terminal.h", "tty.h". The only private header having to include other private headers is "el.h". 2. Do not include "common.h", "parse.h", "help.h" from "el.h", and do not include "emacs.h" and "vi.h" from "chared.h", include them directly where needed. 3. Do include "fcns.h" from "el.h" because el_func_t is needed for "map.h". 4. Do not include private headers again that are already included by "el.h". 5. Include private headers after standard headers. OK czarkoff@
Diffstat (limited to 'lib/libedit/tty.c')
-rw-r--r--lib/libedit/tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c
index 3a9ce30e7f2..97e338c04c7 100644
--- a/lib/libedit/tty.c
+++ b/lib/libedit/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.19 2016/03/20 20:35:38 schwarze Exp $ */
+/* $OpenBSD: tty.c,v 1.20 2016/03/20 22:57:59 schwarze Exp $ */
/* $NetBSD: tty.c,v 1.34 2011/01/27 23:11:40 christos Exp $ */
/*-
@@ -42,8 +42,9 @@
#include <errno.h>
#include <unistd.h> /* for isatty */
#include <strings.h> /* for ffs */
+
#include "el.h"
-#include "tty.h"
+#include "parse.h"
typedef struct ttymodes_t {
const char *m_name;