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/menus.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/menus.c')
-rw-r--r-- | usr.sbin/sade/menus.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index 8714ca2..a7178b4 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -34,14 +34,6 @@ static const char rcsid[] = #include "sade.h" -/* Miscellaneous work routines for menus */ - -static int -checkTrue(dialogMenuItem *item) -{ - return TRUE; -} - /* All the system menus go here. * * Hardcoded things like version number strings will disappear from @@ -61,7 +53,7 @@ DMenu MenuDiskDevices = { "Use [TAB] to get to the buttons and leave this menu.", "Press F1 for important information regarding disk geometry!", "drives", - { { NULL } }, + { { NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } }, }; DMenu MenuMain = { @@ -71,9 +63,10 @@ DMenu MenuMain = { "DISKUTIL", "main", { - { "1 Partition", "Managing disk partitions", NULL, diskPartitionEditor }, - { "2 Label", "Label allocated disk partitions", NULL, diskLabelEditor }, - { NULL } }, + { "1 Partition", "Managing disk partitions", NULL, diskPartitionEditor, NULL, NULL, 0, 0, 0, 0 }, + { "2 Label", "Label allocated disk partitions", NULL, diskLabelEditor, NULL, NULL, 0, 0, 0, 0 }, + { NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } + }, }; #if defined(__i386__) || defined(__amd64__) @@ -90,7 +83,7 @@ DMenu MenuIPLType = { dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr }, { "None", "Leave the IPL untouched", dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 }, - { NULL } }, + { NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } }, }; #else /* MBR type menu */ @@ -109,12 +102,12 @@ DMenu MenuMBRType = { "Press F1 to read about drive setup", "drives", { { "BootMgr", "Install the FreeBSD Boot Manager", - dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr }, + dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, 0, 0, 0, 0 }, { "Standard", "Install a standard MBR (no boot manager)", dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 }, { "None", "Leave the Master Boot Record untouched", dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 }, - { NULL } }, + { NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } }, }; #endif /* PC98 */ #endif /* __i386__ */ |