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/parse.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/parse.c')
-rw-r--r-- | lib/libedit/parse.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libedit/parse.c b/lib/libedit/parse.c index 75f352e3d3e..1cf6524de1f 100644 --- a/lib/libedit/parse.c +++ b/lib/libedit/parse.c @@ -1,5 +1,5 @@ -/* $OpenBSD: parse.c,v 1.16 2016/03/20 22:57:59 schwarze Exp $ */ -/* $NetBSD: parse.c,v 1.23 2009/12/30 22:37:40 christos Exp $ */ +/* $OpenBSD: parse.c,v 1.17 2016/03/20 23:48:27 schwarze Exp $ */ +/* $NetBSD: parse.c,v 1.35 2016/02/17 19:47:49 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -49,6 +49,7 @@ * setty */ #include <stdlib.h> +#include <string.h> #include "el.h" #include "parse.h" @@ -57,9 +58,9 @@ private const struct { const Char *name; int (*func)(EditLine *, int, const Char **); } cmds[] = { - { STR("bind"), map_bind }, + { STR("bind"), map_bind }, { STR("echotc"), terminal_echotc }, - { STR("edit"), el_editmode }, + { STR("edit"), el_editmode }, { STR("history"), hist_command }, { STR("telltc"), terminal_telltc }, { STR("settc"), terminal_settc }, |