summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-07-08 05:41:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-07-08 05:41:12 +0000
commitdaeab2e3f1bf3c98a7e53bb97ad37c5f2c46d656 (patch)
tree44526d3ac1ce5001baebdb5362cb930ce1d7538d /lib/libedit
parent9cadd4f89dc3575473d664353c3934dc70d3023f (diff)
el_set EL_BIND or EL_SETTC must have argument lists ending with NULL.
ok tedu
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/readline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c
index 3f87f393247..a91199f9189 100644
--- a/lib/libedit/readline.c
+++ b/lib/libedit/readline.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readline.c,v 1.9 2011/07/07 05:40:42 okan Exp $ */
+/* $OpenBSD: readline.c,v 1.10 2011/07/08 05:41:11 nicm Exp $ */
/* $NetBSD: readline.c,v 1.91 2010/08/28 15:44:59 christos Exp $ */
/*-
@@ -1908,7 +1908,7 @@ rl_add_defun(const char *name, Function *fun, int c)
map[(unsigned char)c] = fun;
el_set(e, EL_ADDFN, name, name, rl_bind_wrapper);
vis(dest, c, VIS_WHITE|VIS_NOSLASH, 0);
- el_set(e, EL_BIND, dest, name);
+ el_set(e, EL_BIND, dest, name, NULL);
return 0;
}
@@ -2016,7 +2016,7 @@ rl_variable_bind(const char *var, const char *value)
* The proper return value is undocument, but this is what the
* readline source seems to do.
*/
- return ((el_set(e, EL_BIND, "", var, value) == -1) ? 1 : 0);
+ return ((el_set(e, EL_BIND, "", var, value, NULL) == -1) ? 1 : 0);
}
void
@@ -2095,9 +2095,9 @@ rl_set_screen_size(int rows, int cols)
{
char buf[64];
(void)snprintf(buf, sizeof(buf), "%d", rows);
- el_set(e, EL_SETTC, "li", buf);
+ el_set(e, EL_SETTC, "li", buf, NULL);
(void)snprintf(buf, sizeof(buf), "%d", cols);
- el_set(e, EL_SETTC, "co", buf);
+ el_set(e, EL_SETTC, "co", buf, NULL);
}
char **