From d9494059c0831aec86c9b2ccc7c0dbb40f70615f Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 1 Oct 2001 08:43:58 +0000 Subject: *** empty log message *** --- usr.sbin/cdcontrol/cdcontrol.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin/cdcontrol') diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c index e8ab6c7..3e272d3 100644 --- a/usr.sbin/cdcontrol/cdcontrol.c +++ b/usr.sbin/cdcontrol/cdcontrol.c @@ -1098,6 +1098,7 @@ input (int *cmd) #define MAXLINE 80 static EditLine *el = NULL; static History *hist = NULL; + HistEvent he; static char buf[MAXLINE]; int num = 0; int len; @@ -1107,9 +1108,10 @@ input (int *cmd) do { if (verbose) { if (!el) { - el = el_init("cdcontrol", stdin, stdout); + el = el_init("cdcontrol", stdin, stdout, + 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, cdcontrol_prompt); @@ -1125,7 +1127,7 @@ input (int *cmd) len = (num > MAXLINE) ? MAXLINE : num; memcpy(buf, bp, len); buf[len] = 0; - history(hist, H_ENTER, bp); + history(hist, &he, H_ENTER, bp); #undef MAXLINE } else { -- cgit v1.1