]> source.dussan.org Git - rspamd.git/commitdiff
Fix siphash static initializer.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Apr 2015 15:09:18 +0000 (16:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Apr 2015 15:09:18 +0000 (16:09 +0100)
contrib/siphash/siphash.h

index 01383313cddfb14f22d83f0586085efbc942a305..3b79cbcc31a4baae42757260d0c4a8680f3955d9 100644 (file)
 #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 */