From 539090d9498ab259dd625de9a45646da3b9c5831 Mon Sep 17 00:00:00 2001 From: hpa Date: Tue, 28 Dec 2004 22:50:00 +0000 Subject: Support the -m and -a options for the DOS installer as well --- win32/syslinux.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'win32') 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++; } -- cgit v1.2.1