[master] 335c440 Fix casts
Poul-Henning Kamp
phk at FreeBSD.org
Sun Sep 28 21:38:08 CEST 2014
commit 335c440c541054e4e42d20c1be02cff7a3d139da
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sun Sep 28 18:04:36 2014 +0000
Fix casts
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index 05de39f..c74aa38 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -806,9 +806,9 @@ HTTP_Decode(struct http *to, const uint8_t *fm)
}
if (*fm == '\0')
return (0);
- to->hd[to->nhd].b = fm;
- fm = strchr(fm, '\0');
- to->hd[to->nhd].e = fm;
+ to->hd[to->nhd].b = (const void*)fm;
+ fm = (const void*)strchr((const void*)fm, '\0');
+ to->hd[to->nhd].e = (const void*)fm;
fm++;
if (to->vsl != NULL)
http_VSLH(to, to->nhd);
More information about the varnish-commit
mailing list