diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-20 23:48:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-20 23:48:28 +0000 |
commit | 96221280867fcc5be32f99ba980f07468713d523 (patch) | |
tree | e9e87ee9ac7950a5acd831c07587a4b682542cfa /lib/libedit/read.c | |
parent | 03f05bdc3179e384311dc47f75682a01739c2c3f (diff) |
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! */ |