Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Add trailing NULL's to the varargs functions as ...
details: https://anonhg.NetBSD.org/src/rev/c0a754b095cd
branches: trunk
changeset: 782011:c0a754b095cd
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 12 23:35:02 2012 +0000
description:
Add trailing NULL's to the varargs functions as required. (John Spencer)
diffstat:
lib/libedit/readline.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (60 lines):
diff -r 415ee024f1d5 -r c0a754b095cd lib/libedit/readline.c
--- a/lib/libedit/readline.c Fri Oct 12 23:25:15 2012 +0000
+++ b/lib/libedit/readline.c Fri Oct 12 23:35:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.c,v 1.105 2012/07/12 18:46:20 christos Exp $ */
+/* $NetBSD: readline.c,v 1.106 2012/10/12 23:35:02 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.105 2012/07/12 18:46:20 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.106 2012/10/12 23:35:02 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -1927,7 +1927,7 @@
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;
}
@@ -2035,7 +2035,7 @@
* 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
@@ -2104,9 +2104,9 @@
rl_get_screen_size(int *rows, int *cols)
{
if (rows)
- el_get(e, EL_GETTC, "li", rows);
+ el_get(e, EL_GETTC, "li", rows, NULL);
if (cols)
- el_get(e, EL_GETTC, "co", cols);
+ el_get(e, EL_GETTC, "co", cols, NULL);
}
void
@@ -2114,9 +2114,9 @@
{
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 **
Home |
Main Index |
Thread Index |
Old Index