aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
commit757eeda04b7393e24464dd8ec3a823b046eeb561 (patch)
tree9059e56ae23cbabd5e6903995dcb45dc73d47b83 /sbin/fsdb
parent3c195773444850fbd9cf231761a4f76eaf863e5a (diff)
downloadsrc-757eeda04b7393e24464dd8ec3a823b046eeb561.tar.gz
src-757eeda04b7393e24464dd8ec3a823b046eeb561.zip
*** empty log message ***
Notes
Notes: svn path=/head/; revision=84261
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 43e0d263c026..fb72fb1cd713 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -220,15 +220,16 @@ cmdloop()
struct cmdtable *cmdp;
History *hist;
EditLine *elptr;
+ HistEvent he;
curinode = ginode(ROOTINO);
curinum = ROOTINO;
printactive();
hist = history_init();
- history(hist, H_EVENT, 100); /* 100 elt history buffer */
+ history(hist, &he, H_EVENT, 100); /* 100 elt history buffer */
- elptr = el_init("fsdb", stdin, stdout);
+ elptr = el_init("fsdb", stdin, stdout, stderr);
el_set(elptr, EL_EDITOR, "emacs");
el_set(elptr, EL_PROMPT, prompt);
el_set(elptr, EL_HIST, history, hist);
@@ -238,7 +239,7 @@ cmdloop()
if (debug)
printf("command `%s'\n", elline);
- history(hist, H_ENTER, elline);
+ history(hist, &he, H_ENTER, elline);
line = strdup(elline);
cmd_argv = crack(line, &cmd_argc);