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/read.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/read.c')
-rw-r--r-- | lib/libedit/read.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c index 2feace6ddb4..8cfb0236627 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.24 2016/03/20 20:16:09 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.25 2016/03/20 23:48:27 schwarze Exp $ */ /* $NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $ */ /*- @@ -39,11 +39,14 @@ * read.c: Clean this junk up! This is horrible code. * Terminal read functions */ +#include <ctype.h> #include <errno.h> #include <fcntl.h> -#include <unistd.h> -#include <stdlib.h> #include <limits.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + #include "el.h" #define OKCMD -1 /* must be -1! */ |