summaryrefslogtreecommitdiffstats
path: root/lib/libedit/emacs.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/emacs.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/emacs.c')
-rw-r--r--lib/libedit/emacs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libedit/emacs.c b/lib/libedit/emacs.c
index 66972a6c3b6..567dcf4b277 100644
--- a/lib/libedit/emacs.c
+++ b/lib/libedit/emacs.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: emacs.c,v 1.13 2016/03/20 22:57:59 schwarze Exp $ */
-/* $NetBSD: emacs.c,v 1.31 2016/02/16 19:08:41 christos Exp $ */
+/* $OpenBSD: emacs.c,v 1.14 2016/03/20 23:48:27 schwarze Exp $ */
+/* $NetBSD: emacs.c,v 1.32 2016/02/16 22:53:14 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,6 +38,8 @@
/*
* emacs.c: Emacs functions
*/
+#include <ctype.h>
+
#include "el.h"
#include "emacs.h"