summaryrefslogtreecommitdiff
path: root/lib/libedit/sig.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-03-20 23:48:28 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-03-20 23:48:28 +0000
commit96221280867fcc5be32f99ba980f07468713d523 (patch)
treee9e87ee9ac7950a5acd831c07587a4b682542cfa /lib/libedit/sig.c
parent03f05bdc3179e384311dc47f75682a01739c2c3f (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/sig.c')
-rw-r--r--lib/libedit/sig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libedit/sig.c b/lib/libedit/sig.c
index fd925ac6351..8dcd5b9caef 100644
--- a/lib/libedit/sig.c
+++ b/lib/libedit/sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sig.c,v 1.17 2016/03/20 22:57:59 schwarze Exp $ */
+/* $OpenBSD: sig.c,v 1.18 2016/03/20 23:48:27 schwarze Exp $ */
/* $NetBSD: sig.c,v 1.24 2016/02/16 19:08:41 christos Exp $ */
/*-
@@ -40,6 +40,7 @@
* our policy is to trap all signals, set a good state
* and pass the ball to our caller.
*/
+#include <errno.h>
#include <stdlib.h>
#include "el.h"