From: Ken Steele Date: Wed, 11 Sep 2013 20:04:11 +0000 (-0400) Subject: Change one more atomic size in detect.h X-Git-Tag: suricata-2.0beta2~373 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb4f0da97ff7ca4169395e51fa33203aaa236e86;p=thirdparty%2Fsuricata.git Change one more atomic size in detect.h Change uint16_t to int for better tile atomic performance. Checked with pahole that it doesn't increase the size of the structure. --- diff --git a/src/detect.h b/src/detect.h index 559363b23c..df37f22434 100644 --- a/src/detect.h +++ b/src/detect.h @@ -800,7 +800,7 @@ typedef struct DetectionEngineThreadCtx_ { /** ID of the transaction currently being inspected. */ uint64_t tx_id; - SC_ATOMIC_DECLARE(uint16_t, so_far_used_by_detect); + SC_ATOMIC_DECLARE(int, so_far_used_by_detect); /* holds the current recursion depth on content inspection */ int inspection_recursion_counter;