diff options
author | 2016-03-20 23:48:27 +0000 | |
---|---|---|
committer | 2016-03-20 23:48:27 +0000 | |
commit | 7ccfa089d503f0f7c1c22435af04c237b0796118 (patch) | |
tree | 6522e595632a0b190dfe2f14b1a5641765a9c2cd /lib/libedit/tty.c | |
parent | delete useless "typedef int bool_t", use int directly; (diff) | |
download | wireguard-openbsd-7ccfa089d503f0f7c1c22435af04c237b0796118.tar.xz wireguard-openbsd-7ccfa089d503f0f7c1c22435af04c237b0796118.zip |
Cleanup of standard header inclusion:
1. Add the missing <errno.h> to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Delete a few needless inclusions of <ctype.h>.
4. Sort the standard headers.
5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even
need the access to wcsdup(3) mentioned in the comment.
6. Delete some trailing blanks and blanks before tabs.
OK czarkoff@
Diffstat (limited to 'lib/libedit/tty.c')
-rw-r--r-- | lib/libedit/tty.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c index 97e338c04c7..dd3fed61ea2 100644 --- a/lib/libedit/tty.c +++ b/lib/libedit/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.20 2016/03/20 22:57:59 schwarze Exp $ */ +/* $OpenBSD: tty.c,v 1.21 2016/03/20 23:48:27 schwarze Exp $ */ /* $NetBSD: tty.c,v 1.34 2011/01/27 23:11:40 christos Exp $ */ /*- @@ -40,8 +40,10 @@ */ #include <assert.h> #include <errno.h> -#include <unistd.h> /* for isatty */ +#include <stdlib.h> /* for abort */ +#include <string.h> #include <strings.h> /* for ffs */ +#include <unistd.h> /* for isatty */ #include "el.h" #include "parse.h" @@ -964,7 +966,7 @@ tty_update_char(EditLine *el, int mode, int c) { /* tty_rawmode(): - * Set terminal into 1 character at a time mode. + * Set terminal into 1 character at a time mode. */ protected int tty_rawmode(EditLine *el) |