expand: Remove extraneous curly braces from switch statements.

oldstable
Eric Pouech 2011-11-04 21:13:57 +01:00 committed by Alexandre Julliard
parent 7ea2e93107
commit 60460147ee
1 changed files with 0 additions and 10 deletions

View File

@ -105,7 +105,6 @@ int main(int argc, char *argv[])
switch (comp) switch (comp)
{ {
case FILE_COMPRESSION_MSZIP: case FILE_COMPRESSION_MSZIP:
{
outfile_basename[0] = 0; outfile_basename[0] = 0;
if (!SetupIterateCabinetA( infile, 0, set_outfile, outfile_basename )) if (!SetupIterateCabinetA( infile, 0, set_outfile, outfile_basename ))
{ {
@ -116,18 +115,13 @@ int main(int argc, char *argv[])
*basename_index = 0; *basename_index = 0;
strcat( outfile, outfile_basename ); strcat( outfile, outfile_basename );
break; break;
}
case FILE_COMPRESSION_WINLZA: case FILE_COMPRESSION_WINLZA:
{
GetExpandedNameA( infile, outfile_basename ); GetExpandedNameA( infile, outfile_basename );
break; break;
}
default: default:
{
fprintf( stderr, "%s: can't determine original\n", argv[0] ); fprintf( stderr, "%s: can't determine original\n", argv[0] );
return 1; return 1;
} }
}
} }
else else
GetFullPathNameA( argv[2], sizeof(outfile), outfile, NULL ); GetFullPathNameA( argv[2], sizeof(outfile), outfile, NULL );
@ -141,14 +135,12 @@ int main(int argc, char *argv[])
switch (comp) switch (comp)
{ {
case FILE_COMPRESSION_MSZIP: case FILE_COMPRESSION_MSZIP:
{
if (!SetupIterateCabinetA( infile, 0, extract_callback, outfile )) if (!SetupIterateCabinetA( infile, 0, extract_callback, outfile ))
{ {
fprintf( stderr, "%s: cabinet extraction failed\n", argv[0] ); fprintf( stderr, "%s: cabinet extraction failed\n", argv[0] );
return 1; return 1;
} }
break; break;
}
case FILE_COMPRESSION_WINLZA: case FILE_COMPRESSION_WINLZA:
{ {
INT hin, hout; INT hin, hout;
@ -179,7 +171,6 @@ int main(int argc, char *argv[])
break; break;
} }
default: default:
{
if (!CopyFileA( infile, outfile, FALSE )) if (!CopyFileA( infile, outfile, FALSE ))
{ {
fprintf( stderr, "%s: CopyFileA failed\n", argv[0] ); fprintf( stderr, "%s: CopyFileA failed\n", argv[0] );
@ -187,6 +178,5 @@ int main(int argc, char *argv[])
} }
break; break;
} }
}
return ret; return ret;
} }