diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-10-31 06:50:10 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-10-31 06:50:10 +0000 |
commit | b4802e9db16836f2646fda39bd8caf675ee0bcdd (patch) | |
tree | de5770dfe75db05501cbf5494838501c205365bd /usr.bin/systat/engine.c | |
parent | d92a05b329ffbcc06f0090728253e03f1ea4c6c2 (diff) |
Implement start and stop commands as documented,
explicitly pass the command buffer to the command functions.
Diffstat (limited to 'usr.bin/systat/engine.c')
-rw-r--r-- | usr.bin/systat/engine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/engine.c b/usr.bin/systat/engine.c index 4c14c2fa8a0..54f2df32fbd 100644 --- a/usr.bin/systat/engine.c +++ b/usr.bin/systat/engine.c @@ -1,4 +1,4 @@ -/* $Id: engine.c,v 1.4 2008/07/22 03:00:23 canacar Exp $ */ +/* $Id: engine.c,v 1.5 2008/10/31 06:50:09 canacar Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar <canacar@openbsd.org> * @@ -517,7 +517,7 @@ add_view(field_view *fv) } int -set_view(char *opt) +set_view(const char *opt) { struct view_ent *ve, *vm = NULL; field_view *v; @@ -815,7 +815,7 @@ print_fld_uint(field_def *fld, unsigned int size) /* ordering */ void -set_order(char *opt) +set_order(const char *opt) { order_type *o; @@ -1083,7 +1083,7 @@ cmd_keyboard(int ch) case 0x0d: { struct command * c = command_set(NULL, NULL); - c->exec(); + c->exec(cmdbuf); break; } case KEY_BACKSPACE: |