aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-28 22:50:00 +0000
committerhpa <hpa>2004-12-28 22:50:00 +0000
commit539090d9498ab259dd625de9a45646da3b9c5831 (patch)
tree007e4d5acd7064e4730f5390c0f38eb14e736f9b /win32
parent0398ecc18ca2456f3bfc616811004d09e9233102 (diff)
downloadsyslinux.git-539090d9498ab259dd625de9a45646da3b9c5831.tar.gz
syslinux.git-539090d9498ab259dd625de9a45646da3b9c5831.tar.xz
syslinux.git-539090d9498ab259dd625de9a45646da3b9c5831.zip
Support the -m and -a options for the DOS installer as well
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++;
}