summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-03-22 17:16:28 +0000
committerbrian <brian@cvs.openbsd.org>2001-03-22 17:16:28 +0000
commit22285de4ad5b697fa8cd593295c0d9e40ec2d655 (patch)
treeb31de4bce829043c278856027267a085191aba42 /usr.sbin/ppp
parent5e9f0bdc94e1dfe98adba65d19324eace613e646 (diff)
Grok NetBSD's version of el_init() (#ifdef NetBSD only)
Submitted by: martin.hopkins@insignia.com
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/pppctl/pppctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c
index 039c1a836f5..8bb8fa81a5a 100644
--- a/usr.sbin/ppp/pppctl/pppctl.c
+++ b/usr.sbin/ppp/pppctl/pppctl.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pppctl.c,v 1.6 2001/03/05 01:02:55 brian Exp $
+ * $Id: pppctl.c,v 1.7 2001/03/22 17:16:27 brian Exp $
*/
#include <sys/types.h>
@@ -406,10 +406,11 @@ main(int argc, char **argv)
size = 20;
#ifdef __NetBSD__
history(hist, &hev, 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"))) {