From: Anthony Minessale Date: Mon, 11 Jul 2011 22:41:14 +0000 (-0500) Subject: update defined code that doesn't compile anyway X-Git-Tag: v1.2-rc1~108^2^2~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01861950cc8737f20624ae5300edb86fa87eb224;p=thirdparty%2Ffreeswitch.git update defined code that doesn't compile anyway --- diff --git a/src/switch_event.c b/src/switch_event.c index f3cf86370e..629e67e9c3 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -34,7 +34,7 @@ #include #include - +//#define SWITCH_EVENT_RECYCLE #define DISPATCH_QUEUE_LEN 10000 //#define DEBUG_DISPATCH_QUEUES @@ -691,7 +691,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_create_subclass_detailed(const char return SWITCH_STATUS_GENERR; } #ifdef SWITCH_EVENT_RECYCLE - if (switch_queue_trypop(EVENT_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS && pop) { + if (EVENT_RECYCLE_QUEUE && switch_queue_trypop(EVENT_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS && pop) { *event = (switch_event_t *) pop; } else { #endif @@ -834,7 +834,7 @@ static switch_event_header_t *new_header(const char *header_name) #ifdef SWITCH_EVENT_RECYCLE void *pop; - if (switch_queue_trypop(EVENT_HEADER_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS) { + if (EVENT_HEADER_RECYCLE_QUEUE && switch_queue_trypop(EVENT_HEADER_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS) { header = (switch_event_header_t *) pop; } else { #endif