1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-aj,v 1.1 2001/03/02 19:15:17 ad Exp $
--- pppctl/pppctl.c.orig Fri Mar 2 19:03:42 2001
+++ pppctl/pppctl.c Fri Mar 2 19:04:16 2001
@@ -389,6 +389,7 @@
History *hist;
const char *l, *env;
int size;
+ HistEvent hev = { 0, "" };
hist = history_init();
if ((env = getenv("EL_SIZE"))) {
@@ -398,7 +399,7 @@
} else
size = 20;
#ifdef __NetBSD__
- history(hist, NULL, H_SETSIZE, size);
+ history(hist, &hev, H_SETSIZE, size);
edit = el_init("pppctl", stdin, stdout, stderr);
#else
history(hist, H_EVENT, size);
@@ -417,7 +418,7 @@
while ((l = smartgets(edit, &len, fd))) {
if (len > 1)
#ifdef __NetBSD__
- history(hist, NULL, H_ENTER, l);
+ history(hist, &hev, H_ENTER, l);
#else
history(hist, H_ENTER, l);
#endif
|