summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/sh/histedit.c2
-rw-r--r--sbin/fsdb/fsdb.c2
-rw-r--r--usr.bin/tftp/main.c2
-rw-r--r--usr.sbin/cdcontrol/cdcontrol.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index 4d7793b..6b52005 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -156,7 +156,7 @@ sethistsize(hs)
if (hs == NULL || *hs == '\0' ||
(histsize = atoi(hs)) < 0)
histsize = 100;
- history(hist, &he, H_EVENT, histsize);
+ history(hist, &he, H_SETSIZE, histsize);
}
}
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 01a9696..d9828bd 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -223,7 +223,7 @@ cmdloop(void)
printactive(0);
hist = history_init();
- history(hist, &he, H_EVENT, 100); /* 100 elt history buffer */
+ history(hist, &he, H_SETSIZE, 100); /* 100 elt history buffer */
elptr = el_init("fsdb", stdin, stdout, stderr);
el_set(elptr, EL_EDITOR, "emacs");
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 08a7f13..591914c 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -635,7 +635,7 @@ command()
if (vrbose) {
el = el_init("tftp", stdin, stdout, stderr);
hist = history_init();
- history(hist, &he, H_EVENT, 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, command_prompt);
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c
index edebd65..040106f 100644
--- a/usr.sbin/cdcontrol/cdcontrol.c
+++ b/usr.sbin/cdcontrol/cdcontrol.c
@@ -1130,7 +1130,7 @@ input (int *cmd)
el = el_init("cdcontrol", stdin, stdout,
stderr);
hist = history_init();
- history(hist, &he, H_EVENT, 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, cdcontrol_prompt);
OpenPOWER on IntegriCloud