1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00

gcc 3.3 warns: dereferencing type-punned pointer will break strict-aliasing rules

svn path=/trunk/httpp/; revision=4906
This commit is contained in:
brendan 2003-06-09 22:30:09 +00:00
parent 4ef26ef74e
commit c8d79db03a

View File

@ -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;