[xiph-cvs] cvs commit: httpp httpp.c
Brendan
brendan at xiph.org
Mon Jun 9 15:30:09 PDT 2003
brendan 03/06/09 18:30:09
Modified: . httpp.c
Log:
gcc 3.3 warns: dereferencing type-punned pointer will break strict-aliasing rules
Revision Changes Path
1.20 +6 -2 httpp/httpp.c
Index: httpp.c
===================================================================
RCS file: /usr/local/cvsroot/httpp/httpp.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -u -r1.19 -r1.20
--- httpp.c 5 Jun 2003 17:09:12 -0000 1.19
+++ httpp.c 9 Jun 2003 22:30:09 -0000 1.20
@@ -478,11 +478,13 @@ char *httpp_getvar(http_parser_t *parser
{
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_
{
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;
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list