From: phk Date: Mon, 22 Jan 2007 11:46:25 +0000 (+0000) Subject: Use struct assignment to overcome volatile poisoning. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42ff87d6ec00a58e370770935b22104e94520964;p=varnish Use struct assignment to overcome volatile poisoning. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/shmlog.c b/varnish-cache/bin/varnishd/shmlog.c index a5cf9798..9d99db93 100644 --- a/varnish-cache/bin/varnishd/shmlog.c +++ b/varnish-cache/bin/varnishd/shmlog.c @@ -365,6 +365,6 @@ VSL_MgtInit(const char *fn, unsigned size) xxxassert(loghead != MAP_FAILED); VSL_stats = &loghead->stats; pp = (void *)(loghead + 1); - memcpy(pp, params, sizeof *pp); + *pp = *params; params = pp; }