1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04: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 b41664426c
commit e49e587c01

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;