mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-26 11:30:12 +00:00
mkdos33fs: cleanup whitespace
This commit is contained in:
parent
6c4b06ae1a
commit
5ecc16e840
@ -42,21 +42,24 @@ int main(int argc, char **argv) {
|
|||||||
while ((c = getopt (argc, argv,"t:s:b:d:f:hv"))!=-1) {
|
while ((c = getopt (argc, argv,"t:s:b:d:f:hv"))!=-1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
||||||
case 't': num_tracks=strtol(optarg,&endptr,10);
|
case 't':
|
||||||
|
num_tracks=strtol(optarg,&endptr,10);
|
||||||
if ( endptr == optarg ) usage(argv[0], 1);
|
if ( endptr == optarg ) usage(argv[0], 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 's': num_sectors=strtol(optarg,&endptr,10);
|
case 's':
|
||||||
if ( endptr == optarg ) usage(argv[0], 1);
|
num_sectors=strtol(optarg,&endptr,10);
|
||||||
break;
|
|
||||||
case 'b': block_size=strtol(optarg,&endptr,10);
|
|
||||||
if ( endptr == optarg ) usage(argv[0], 1);
|
if ( endptr == optarg ) usage(argv[0], 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'd': copy_dos=1;
|
case 'b':
|
||||||
|
block_size=strtol(optarg,&endptr,10);
|
||||||
|
if ( endptr == optarg ) usage(argv[0], 1);
|
||||||
|
break;
|
||||||
|
case 'd':
|
||||||
|
copy_dos=1;
|
||||||
strncpy(dos_src,optarg,BUFSIZ);
|
strncpy(dos_src,optarg,BUFSIZ);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
if (strlen(optarg)>30) {
|
if (strlen(optarg)>30) {
|
||||||
fprintf(stderr,"Auto boot filename too long!\n");
|
fprintf(stderr,"Auto boot filename too long!\n");
|
||||||
@ -66,10 +69,8 @@ int main(int argc, char **argv) {
|
|||||||
for(i=strlen(optarg);i<30;i++) boot_filename[i]=' ';
|
for(i=strlen(optarg);i<30;i++) boot_filename[i]=' ';
|
||||||
// printf("Writing boot filename \"%s\"\n",boot_filename);
|
// printf("Writing boot filename \"%s\"\n",boot_filename);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v': usage(argv[0],0);
|
case 'v': usage(argv[0],0);
|
||||||
case 'h': usage(argv[0],1);
|
case 'h': usage(argv[0],1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user