diff options
author | obrien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
commit | d9494059c0831aec86c9b2ccc7c0dbb40f70615f (patch) | |
tree | 9059e56ae23cbabd5e6903995dcb45dc73d47b83 /contrib/bind | |
parent | 90300f853673b3879ab4d6a60683ff69b564c58b (diff) | |
download | FreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.zip FreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.tar.gz |
*** empty log message ***
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 242f2e7..d132863 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 ) ) |