[master] a25a2b6 Fix for GCC warning

Poul-Henning Kamp phk at FreeBSD.org
Thu Aug 7 09:52:42 CEST 2014


commit a25a2b67a83ba4ba898d480a9335ed918b606214
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Aug 7 07:52:18 2014 +0000

    Fix for GCC warning

diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index f2e310f..54e14ab 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -704,7 +704,7 @@ HTTP_Decode(struct http *to, uint8_t *fm)
 		if (*fm == '\0')
 			return (0);
 		to->hd[to->nhd].b = (void*)fm;
-		fm = strchr((void*)fm, '\0');
+		fm = (void*)strchr((void*)fm, '\0');
 		to->hd[to->nhd].e = (void*)fm;
 		fm++;
 		if (to->vsl != NULL)



More information about the varnish-commit mailing list