--- src/usr.sbin/lpr/lpc/lpc.c 2005/11/13 11:58:31 1.6 +++ src/usr.sbin/lpr/lpc/lpc.c 2006/01/14 22:58:18 1.7 @@ -143,6 +143,7 @@ cmdscanner(void) struct cmd *c; static EditLine *el; static History *hist; + static HistEvent he; size_t len; int num; const char *bp; @@ -156,7 +157,7 @@ cmdscanner(void) if (!el) { el = el_init("lpc", stdin, stdout, stderr); hist = history_init(); - history(hist, NULL, H_SETSIZE, 100); + history(hist, &he, H_SETSIZE, 100); el_set(el, EL_HIST, history, hist); el_set(el, EL_EDITOR, "emacs"); el_set(el, EL_PROMPT, lpc_prompt); @@ -178,7 +179,7 @@ cmdscanner(void) len = (num > MAX_CMDLINE -1) ? MAX_CMDLINE -1 : num; memcpy(cmdline, bp, len); cmdline[len] = 0; - history(hist, NULL, H_ENTER, bp); + history(hist, &he, H_ENTER, bp); } else { if (fgets(cmdline, MAX_CMDLINE, stdin) == 0)