diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
commit | 757eeda04b7393e24464dd8ec3a823b046eeb561 (patch) | |
tree | 9059e56ae23cbabd5e6903995dcb45dc73d47b83 /contrib/bind | |
parent | 3c195773444850fbd9cf231761a4f76eaf863e5a (diff) | |
download | src-757eeda04b7393e24464dd8ec3a823b046eeb561.tar.gz src-757eeda04b7393e24464dd8ec3a823b046eeb561.zip |
*** empty log message ***
Notes
Notes:
svn path=/head/; revision=84261
Diffstat (limited to 'contrib/bind')
-rw-r--r-- | contrib/bind/bin/nslookup/commands.l | 7 |
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 ) ) |