mkdos33fs: cleanup whitespace

This commit is contained in:
Vince Weaver 2016-12-09 20:32:34 -05:00
parent 6c4b06ae1a
commit 5ecc16e840

View File

@ -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);
} }
} }