diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-18 18:11:11 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-18 18:11:32 +0000 |
commit | 538335a717faeed3093ebedb0066fe8fbaa0c93e (patch) | |
tree | 1167e667cb1c0ab44e78362a1dfb65fa5e5cfcfd /src/rspamadm | |
parent | 402233b9110286daa1ad92c24f279bbbca35e8b7 (diff) | |
download | rspamd-538335a717faeed3093ebedb0066fe8fbaa0c93e.tar.gz rspamd-538335a717faeed3093ebedb0066fe8fbaa0c93e.zip |
Fix some compiler warnings
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/fuzzy_merge.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |