diff options
author | delphij <delphij@FreeBSD.org> | 2006-08-08 13:45:46 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-08-08 13:45:46 +0000 |
commit | ae2f8ae4be9332bd1024da5ecc4d2e3a86015f3b (patch) | |
tree | f8f79f0788f687baf4bfea8a4314a5f01a94ad79 /usr.sbin/sade/system.c | |
parent | ecc9acd26891da5892fc77bf0ed0df59cf810c1e (diff) | |
download | FreeBSD-src-ae2f8ae4be9332bd1024da5ecc4d2e3a86015f3b.zip FreeBSD-src-ae2f8ae4be9332bd1024da5ecc4d2e3a86015f3b.tar.gz |
Make sade(8) WARNS=3 clean.
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r-- | usr.sbin/sade/system.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index 9337b05..f421123 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -29,8 +29,6 @@ #define DOC_TMP_DIR "/tmp/.doc" #define DOC_TMP_FILE "/tmp/.doc/doc.tmp" -static pid_t ehs_pid; - /* * Handle interrupt signals - this probably won't work in all cases * due to our having bogotified the internal state of dialog or curses, @@ -58,8 +56,8 @@ intr_restart(dialogMenuItem *self) } static dialogMenuItem intrmenu[] = { - { "Restart", "Restart the program", NULL, intr_restart }, - { "Continue", "Continue without restarting", NULL, intr_continue }, + { "Restart", "Restart the program", NULL, intr_restart, NULL, NULL, 0, 0, 0, 0 }, + { "Continue", "Continue without restarting", NULL, intr_continue, NULL, NULL, 0, 0, 0, 0 }, }; @@ -116,8 +114,6 @@ systemInitialize(int argc, char **argv) (i == sizeof(boothowto)) && (boothowto & RB_VERBOSE)) variable_set2(VAR_DEBUG, "YES", 0); - char hname[256]; - if (set_termcap() == -1) { printf("Can't find terminal entry\n"); exit(-1); @@ -274,7 +270,7 @@ systemChangeTerminal(char *color, const u_char c_term[], } int -vsystem(char *fmt, ...) +vsystem(const char *fmt, ...) { va_list args; int pstat; |