aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/main.c
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2011-11-24 18:37:16 +0000
committerMax Khon <fjoe@FreeBSD.org>2011-11-24 18:37:16 +0000
commit166a0ada4ee1cf04ec01f7cb754172d7fc93eb4d (patch)
tree9e5f23a822d51522e33be85bca7d8f85e18b6968 /usr.sbin/sade/main.c
parent246864a52b0a0b846f603b746c3c5ee9c7bcdb83 (diff)
downloadsrc-166a0ada4ee1cf04ec01f7cb754172d7fc93eb4d.tar.gz
src-166a0ada4ee1cf04ec01f7cb754172d7fc93eb4d.zip
Notes
Diffstat (limited to 'usr.sbin/sade/main.c')
-rw-r--r--usr.sbin/sade/main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/sade/main.c b/usr.sbin/sade/main.c
index 22d940110638..cb493f3f2a01 100644
--- a/usr.sbin/sade/main.c
+++ b/usr.sbin/sade/main.c
@@ -39,8 +39,8 @@ const char *ProgName = "sade";
int
main(int argc, char **argv)
{
- int choice, scroll, curr, max, status;
-
+ int status;
+
/* Record name to be able to restart */
StartName = argv[0];
@@ -77,7 +77,9 @@ main(int argc, char **argv)
/* Try to preserve our scroll-back buffer */
if (OnVTY) {
- for (curr = 0; curr < 25; curr++)
+ int i;
+
+ for (i = 0; i < 25; i++)
putchar('\n');
}
/* Move stderr aside */
@@ -105,10 +107,9 @@ main(int argc, char **argv)
}
/* Begin user dialog at outer menu */
- dialog_clear();
+ dlg_clear();
while (1) {
- choice = scroll = curr = max = 0;
- dmenuOpen(&MenuMain, &choice, &scroll, &curr, &max, FALSE);
+ dmenuOpen(&MenuMain);
if (getpid() != 1
|| !msgNoYes("Are you sure you wish to exit?")
)