]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mpm: fix ac-ks compilation on cygwin
authorVictor Julien <victor@inliniac.net>
Mon, 12 Oct 2015 10:49:06 +0000 (12:49 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 4 Apr 2016 16:14:54 +0000 (18:14 +0200)
src/util-mpm-ac-tile-small.c
src/util-mpm-ac-tile.c

index e271dc96dbd7e8c9e5f89556b861b9414c610b4a..d37d982e011303692f9e14d6e31dd3ac4483055d 100644 (file)
@@ -46,12 +46,12 @@ uint32_t FUNC_NAME(SCACTileSearchCtx *ctx, MpmThreadCtx *mpm_thread_ctx,
     int c = xlate[buf[0]];
     /* If buflen at least 4 bytes and buf 4-byte aligned. */
     if (buflen >= (4 + EXTRA) && ((uintptr_t)buf & 0x3) == 0) {
-        BTYPE data = *(BTYPE* restrict)(&buf[0]);
+        BUF_TYPE data = *(BUF_TYPE* restrict)(&buf[0]);
         uint64_t index = 0;
         /* Process 4*floor(buflen/4) bytes. */
         i = 0;
         while ((i + EXTRA) < (buflen & ~0x3)) {
-            BTYPE data1 = *(BTYPE* restrict)(&buf[i + 4]);
+            BUF_TYPE data1 = *(BUF_TYPE* restrict)(&buf[i + 4]);
             index = SINDEX(index, state);
             state = SLOAD(state_table + index + c);
             c = xlate[BYTE1(data)];
index 025335d3ef88c2e3fa84793183d291619fd08444..747a24fc88679bfdb61c4e9e346271b83bfe3776 100644 (file)
@@ -1476,7 +1476,7 @@ void SCACTileDestroyCtx(MpmCtx *mpm_ctx)
  */
 
 #define SCHECK(x) ((x) > 0)
-#define BTYPE int32_t
+#define BUF_TYPE int32_t
 // Extract byte N=0,1,2,3 from x
 #ifdef __tile__
 #define BYTE0(x) __insn_bfextu(x, 0, 7)