Eric Pouech : expand: Remove extraneous curly braces from switch statements .

Alexandre Julliard julliard at winehq.org
Mon Nov 7 13:30:42 CST 2011


Module: wine
Branch: master
Commit: 60460147ee89faae1b3f78dd10a2a3a41f0df1e6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=60460147ee89faae1b3f78dd10a2a3a41f0df1e6

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Fri Nov  4 21:13:57 2011 +0100

expand: Remove extraneous curly braces from switch statements.

---

 programs/expand/expand.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

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




More information about the wine-cvs mailing list