[master] f96d286 Explicit cast back to pointer

Poul-Henning Kamp phk at FreeBSD.org
Mon Sep 29 07:42:35 CEST 2014


commit f96d286a98110b32cd4b2a0a34115ee983118419
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Sep 29 05:42:24 2014 +0000

    Explicit cast back to pointer

diff --git a/bin/varnishd/storage/storage_persistent.c b/bin/varnishd/storage/storage_persistent.c
index 411fc9a..3bf3353 100644
--- a/bin/varnishd/storage/storage_persistent.c
+++ b/bin/varnishd/storage/storage_persistent.c
@@ -491,7 +491,7 @@ smp_allocx(struct stevedore *st, size_t min_size, size_t max_size,
 	/* Fill the storage structure */
 	memset(ss, 0, sizeof *ss);
 	ss->magic = STORAGE_MAGIC;
-	ss->ptr = PRNUP(sc, ss + 1);
+	ss->ptr = (void*)PRNUP(sc, ss + 1);
 	ss->space = max_size;
 	ss->priv = sc;
 	ss->stevedore = st;



More information about the varnish-commit mailing list