From 538335a717faeed3093ebedb0066fe8fbaa0c93e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Jan 2016 18:11:11 +0000 Subject: Fix some compiler warnings --- src/rspamadm/fuzzy_merge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rspamadm') diff --git a/src/rspamadm/fuzzy_merge.c b/src/rspamadm/fuzzy_merge.c index fac5e0a45..01d2e137c 100644 --- a/src/rspamadm/fuzzy_merge.c +++ b/src/rspamadm/fuzzy_merge.c @@ -210,9 +210,11 @@ static guint rspamadm_op_hash (gconstpointer p) { const struct fuzzy_merge_op *op = p; + guint res; /* Uniformly distributed */ - return *(guint *)op->digest; + memcpy (&res, op->digest, sizeof (res)); + return res; } static gboolean -- cgit v1.2.3