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
49e8797d
Commit
49e8797d
authored
Oct 19, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Cast-qual warnings fix.
parent
4ada8a5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
fdi.c
dlls/cabinet/fdi.c
+5
-9
No files found.
dlls/cabinet/fdi.c
View file @
49e8797d
...
...
@@ -945,7 +945,7 @@ static void fdi_Ziphuft_free(HFDI hfdi, struct Ziphuft *t)
/*********************************************************
* fdi_Ziphuft_build (internal)
*/
static
cab_LONG
fdi_Ziphuft_build
(
cab_ULONG
*
b
,
cab_ULONG
n
,
cab_ULONG
s
,
c
ab_UWORD
*
d
,
cab_UWORD
*
e
,
static
cab_LONG
fdi_Ziphuft_build
(
cab_ULONG
*
b
,
cab_ULONG
n
,
cab_ULONG
s
,
c
onst
cab_UWORD
*
d
,
const
cab_UWORD
*
e
,
struct
Ziphuft
**
t
,
cab_LONG
*
m
,
fdi_decomp_state
*
decomp_state
)
{
cab_ULONG
a
;
/* counter for codes of length k */
...
...
@@ -1272,16 +1272,14 @@ static cab_LONG fdi_Zipinflate_fixed(fdi_decomp_state *decomp_state)
for
(;
i
<
288
;
i
++
)
/* make a complete, but wrong code set */
l
[
i
]
=
8
;
fixed_bl
=
7
;
if
((
i
=
fdi_Ziphuft_build
(
l
,
288
,
257
,
(
cab_UWORD
*
)
Zipcplens
,
(
cab_UWORD
*
)
Zipcplext
,
&
fixed_tl
,
&
fixed_bl
,
decomp_state
)))
if
((
i
=
fdi_Ziphuft_build
(
l
,
288
,
257
,
Zipcplens
,
Zipcplext
,
&
fixed_tl
,
&
fixed_bl
,
decomp_state
)))
return
i
;
/* distance table */
for
(
i
=
0
;
i
<
30
;
i
++
)
/* make an incomplete code set */
l
[
i
]
=
5
;
fixed_bd
=
5
;
if
((
i
=
fdi_Ziphuft_build
(
l
,
30
,
0
,
(
cab_UWORD
*
)
Zipcpdist
,
(
cab_UWORD
*
)
Zipcpdext
,
&
fixed_td
,
&
fixed_bd
,
decomp_state
))
>
1
)
if
((
i
=
fdi_Ziphuft_build
(
l
,
30
,
0
,
Zipcpdist
,
Zipcpdext
,
&
fixed_td
,
&
fixed_bd
,
decomp_state
))
>
1
)
{
fdi_Ziphuft_free
(
CAB
(
hfdi
),
fixed_tl
);
return
i
;
...
...
@@ -1409,16 +1407,14 @@ static cab_LONG fdi_Zipinflate_dynamic(fdi_decomp_state *decomp_state)
/* build the decoding tables for literal/length and distance codes */
bl
=
ZIPLBITS
;
if
((
i
=
fdi_Ziphuft_build
(
ll
,
nl
,
257
,
(
cab_UWORD
*
)
Zipcplens
,
(
cab_UWORD
*
)
Zipcplext
,
&
tl
,
&
bl
,
decomp_state
))
!=
0
)
if
((
i
=
fdi_Ziphuft_build
(
ll
,
nl
,
257
,
Zipcplens
,
Zipcplext
,
&
tl
,
&
bl
,
decomp_state
))
!=
0
)
{
if
(
i
==
1
)
fdi_Ziphuft_free
(
CAB
(
hfdi
),
tl
);
return
i
;
/* incomplete code set */
}
bd
=
ZIPDBITS
;
fdi_Ziphuft_build
(
ll
+
nl
,
nd
,
0
,
(
cab_UWORD
*
)
Zipcpdist
,
(
cab_UWORD
*
)
Zipcpdext
,
&
td
,
&
bd
,
decomp_state
);
fdi_Ziphuft_build
(
ll
+
nl
,
nd
,
0
,
Zipcpdist
,
Zipcpdext
,
&
td
,
&
bd
,
decomp_state
);
/* decompress until an end-of-block code */
if
(
fdi_Zipinflate_codes
(
tl
,
td
,
bl
,
bd
,
decomp_state
))
...
...
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