From e83358b444c3dcb93b56eb53e3150eb2e327ad1f Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 20 Sep 1999 07:22:22 +0000 Subject: [PATCH] NetBSD has changed the el_init() prototype Submitted by: Kazuyoshi Kato --- usr.sbin/pppctl/pppctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pppctl/pppctl.c b/usr.sbin/pppctl/pppctl.c index 46c55c9919f..7cb649edd0e 100644 --- a/usr.sbin/pppctl/pppctl.c +++ b/usr.sbin/pppctl/pppctl.c @@ -369,10 +369,11 @@ main(int argc, char **argv) size = 20; #ifdef __NetBSD__ history(hist, NULL, H_SETSIZE, size); + edit = el_init("pppctl", stdin, stdout, stderr); #else history(hist, H_EVENT, size); -#endif edit = el_init("pppctl", stdin, stdout); +#endif el_source(edit, NULL); el_set(edit, EL_PROMPT, GetPrompt); if ((env = getenv("EL_EDITOR"))) {