Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
60460147
Commit
60460147
authored
Nov 04, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expand: Remove extraneous curly braces from switch statements.
parent
7ea2e931
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
expand.c
programs/expand/expand.c
+0
-10
No files found.
programs/expand/expand.c
View file @
60460147
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment