From: Anoop Saldanha Date: Fri, 22 Jun 2012 18:19:44 +0000 (+0530) Subject: Replace the old atomic sets using cas with the new sc_atomic_set macro X-Git-Tag: suricata-1.3rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3eab5cf4e6ce00b3ad16f9409d4aed077e69d87;p=thirdparty%2Fsuricata.git Replace the old atomic sets using cas with the new sc_atomic_set macro --- diff --git a/src/detect-engine.c b/src/detect-engine.c index 6ae7d84846..634f0aec7b 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -227,8 +227,7 @@ static void *DetectEngineLiveRuleSwap(void *arg) } - BUG_ON(SC_ATOMIC_CAS(&slots->slot_data, SC_ATOMIC_GET(slots->slot_data), - det_ctx) == 0);; + SC_ATOMIC_SET(slots->slot_data, det_ctx); SCLogDebug("swapping new det_ctx with older one"); slots = slots->slot_next;