r1236 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jan 22 12:46:25 CET 2007


Author: phk
Date: 2007-01-22 12:46:25 +0100 (Mon, 22 Jan 2007)
New Revision: 1236

Modified:
   trunk/varnish-cache/bin/varnishd/shmlog.c
Log:
Use struct assignment to overcome volatile poisoning.


Modified: trunk/varnish-cache/bin/varnishd/shmlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/shmlog.c	2007-01-22 11:15:57 UTC (rev 1235)
+++ trunk/varnish-cache/bin/varnishd/shmlog.c	2007-01-22 11:46:25 UTC (rev 1236)
@@ -365,6 +365,6 @@
 	xxxassert(loghead != MAP_FAILED);
 	VSL_stats = &loghead->stats;
 	pp = (void *)(loghead + 1);
-	memcpy(pp, params, sizeof *pp);
+	*pp = *params;
 	params = pp;
 }




More information about the varnish-commit mailing list