summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-06 16:09:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-06 16:09:18 +0100
commit7c2a321e835d385e17bae5ad5af53371dfcb0c66 (patch)
tree49cc4d879156062b582f95e56ede4b6c2bc89d93 /contrib
parent9d8c61c149266840166a9e58a2b5dbb3a8882bcb (diff)
downloadrspamd-7c2a321e835d385e17bae5ad5af53371dfcb0c66.tar.gz
rspamd-7c2a321e835d385e17bae5ad5af53371dfcb0c66.zip
Fix siphash static initializer.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/siphash/siphash.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/siphash/siphash.h b/contrib/siphash/siphash.h
index 01383313c..3b79cbcc3 100644
--- a/contrib/siphash/siphash.h
+++ b/contrib/siphash/siphash.h
@@ -65,17 +65,16 @@
#include <stddef.h> /* size_t */
#include <stdint.h> /* uint64_t uint32_t uint8_t */
-#define SIPHASH_INITIALIZER { 0, 0, 0, 0, { 0 }, 0, 0 }
+#define SIPHASH_INITIALIZER { 0, 0, 0, 0, 0, 0, {{0}} }
struct siphash {
uint64_t v0, v1, v2, v3;
-
+ uint64_t c;
+ unsigned char *p;
union {
unsigned char buf[8];
uint64_t m;
} b;
- unsigned char *p;
- uint64_t c;
}; /* struct siphash */