Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
e49e587c
Commit
e49e587c
authored
Jun 09, 2003
by
brendan
Browse files
gcc 3.3 warns: dereferencing type-punned pointer will break strict-aliasing rules
svn path=/trunk/httpp/; revision=4906
parent
b4166442
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/httpp/httpp.c
View file @
e49e587c
...
...
@@ -478,11 +478,13 @@ char *httpp_getvar(http_parser_t *parser, char *name)
{
http_var_t
var
;
http_var_t
*
found
;
void
*
fp
;
fp
=
&
found
;
var
.
name
=
name
;
var
.
value
=
NULL
;
if
(
avl_get_by_key
(
parser
->
vars
,
(
void
*
)
&
var
,
(
void
**
)
&
found
)
==
0
)
if
(
avl_get_by_key
(
parser
->
vars
,
&
var
,
fp
)
==
0
)
return
found
->
value
;
else
return
NULL
;
...
...
@@ -513,11 +515,13 @@ char *httpp_get_query_param(http_parser_t *parser, char *name)
{
http_var_t
var
;
http_var_t
*
found
;
void
*
fp
;
fp
=
&
found
;
var
.
name
=
name
;
var
.
value
=
NULL
;
if
(
avl_get_by_key
(
parser
->
queryvars
,
(
void
*
)
&
var
,
(
void
**
)
&
found
)
==
0
)
if
(
avl_get_by_key
(
parser
->
queryvars
,
(
void
*
)
&
var
,
fp
)
==
0
)
return
found
->
value
;
else
return
NULL
;
...
...
Write
Preview
Supports
Markdown
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