aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/syslinux.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/win32/syslinux.c b/win32/syslinux.c
index 8429f785..283861b4 100644
--- a/win32/syslinux.c
+++ b/win32/syslinux.c
@@ -278,16 +278,22 @@ int main(int argc, char *argv[])
usage();
while ( *opt ) {
- if ( *opt == 's' ) {
- syslinux_make_stupid(); /* Use "safe, slow and stupid" code */
- } else if ( *opt == 'f' ) {
- force = 1; /* Force install */
- } else if ( *opt == 'm' ) {
- mbr = 1; /* Install MBR */
- } else if ( *opt == 'a' ) {
- setactive = 1; /* Mark this partition active */
- } else {
+ switch ( *opt ) {
+ case 's': /* Use "safe, slow and stupid" code */
+ syslinux_make_stupid();
+ break;
+ case 'f': /* Force install */
+ force = 1;
+ break;
+ case 'm': /* Install MBR */
+ mbr = 1;
+ break;
+ case 'a': /* Mark this partition active */
+ setactive = 1;
+ break;
+ default:
usage();
+ break;
}
opt++;
}