summaryrefslogtreecommitdiffstats
path: root/lib/libedit/tokenizer.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-03-20 23:48:27 +0000
committerschwarze <schwarze@openbsd.org>2016-03-20 23:48:27 +0000
commit7ccfa089d503f0f7c1c22435af04c237b0796118 (patch)
tree6522e595632a0b190dfe2f14b1a5641765a9c2cd /lib/libedit/tokenizer.c
parentdelete useless "typedef int bool_t", use int directly; (diff)
downloadwireguard-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/tokenizer.c')
-rw-r--r--lib/libedit/tokenizer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/tokenizer.c b/lib/libedit/tokenizer.c
index 69335828fa3..6a026654eaf 100644
--- a/lib/libedit/tokenizer.c
+++ b/lib/libedit/tokenizer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tokenizer.c,v 1.16 2016/03/20 21:04:15 schwarze Exp $ */
+/* $OpenBSD: tokenizer.c,v 1.17 2016/03/20 23:48:27 schwarze Exp $ */
/* $NetBSD: tokenizer.c,v 1.23 2016/02/15 15:37:20 christos Exp $ */
/*-
@@ -39,8 +39,9 @@
/*
* tokenize.c: Bourne shell like tokenizer
*/
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
+
#include "histedit.h"
#include "chartype.h"