]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: shut up CentOS 5 warning
authorChris Rienzo <chris@rienzo.com>
Tue, 11 Feb 2014 22:58:04 +0000 (17:58 -0500)
committerChris Rienzo <chris@rienzo.com>
Tue, 11 Feb 2014 22:58:44 +0000 (17:58 -0500)
src/mod/event_handlers/mod_rayo/rayo_cpa_component.c

index 80043471189b3f37b3879b45ad3ddeabff813333..bbb288d9202802fd9034cba7cfd155eb3caa9ee0 100644 (file)
@@ -162,12 +162,12 @@ static void stop_cpa_detectors(struct cpa_component *cpa)
        if (cpa->signals) {
                switch_hash_index_t *hi = NULL;
                for (hi = switch_core_hash_first(cpa->signals); hi; hi = switch_core_hash_next(hi)) {
-                       const char *signal_type;
-                       struct cpa_signal *cpa_signal = NULL;
-                       switch_core_hash_this(hi, (const void **)&signal_type, NULL, (void **)&cpa_signal);
+                       const void *signal_type;
+                       void *cpa_signal = NULL;
+                       switch_core_hash_this(hi, &signal_type, NULL, &cpa_signal);
                        if (cpa_signal) {
-                               rayo_cpa_detector_stop(RAYO_COMPONENT(cpa)->parent->id, cpa_signal->name);
-                               unsubscribe(RAYO_COMPONENT(cpa)->parent->id, cpa_signal->name, RAYO_JID(cpa));
+                               rayo_cpa_detector_stop(RAYO_COMPONENT(cpa)->parent->id, ((struct cpa_signal *)cpa_signal)->name);
+                               unsubscribe(RAYO_COMPONENT(cpa)->parent->id, ((struct cpa_signal *)cpa_signal)->name, RAYO_JID(cpa));
                        }
                }
                switch_core_hash_destroy(&cpa->signals);