summaryrefslogtreecommitdiff
path: root/contrib/bind
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
commit757eeda04b7393e24464dd8ec3a823b046eeb561 (patch)
tree9059e56ae23cbabd5e6903995dcb45dc73d47b83 /contrib/bind
parent3c195773444850fbd9cf231761a4f76eaf863e5a (diff)
downloadsrc-test2-757eeda04b7393e24464dd8ec3a823b046eeb561.tar.gz
src-test2-757eeda04b7393e24464dd8ec3a823b046eeb561.zip
Notes
Diffstat (limited to 'contrib/bind')
-rw-r--r--contrib/bind/bin/nslookup/commands.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/bind/bin/nslookup/commands.l b/contrib/bind/bin/nslookup/commands.l
index 242f2e7ba80b..d1328630a7fe 100644
--- a/contrib/bind/bin/nslookup/commands.l
+++ b/contrib/bind/bin/nslookup/commands.l
@@ -125,14 +125,15 @@ nslookup_yy_input(buf, result, max_size, intr)
{
static EditLine *el = NULL;
static History *hist = NULL;
+ HistEvent he;
int num = 0;
const char *bp = NULL;
if (intr) {
if (!el) {
- el = el_init("nslookup", yyin, yyout);
+ el = el_init("nslookup", yyin, yyout, stderr);
hist = history_init();
- history(hist, H_EVENT, 100);
+ history(hist, &he, H_EVENT, 100);
el_set(el, EL_HIST, history, hist);
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, nslookup_prompt);
@@ -147,7 +148,7 @@ nslookup_yy_input(buf, result, max_size, intr)
*result = (num > max_size) ? max_size : num;
strncpy(buf, bp, *result);
- history(hist, H_ENTER, bp);
+ history(hist, &he, H_ENTER, bp);
} else {
if ( ((*result = fread( buf, 1, max_size, yyin )) == 0)
&& ferror( yyin ) )