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/parse.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/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 }, |