]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build breakage from r951
authorMichael Jerris <mike@jerris.com>
Sat, 9 Jan 2010 17:29:52 +0000 (17:29 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 9 Jan 2010 17:29:52 +0000 (17:29 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@953 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/include/openzap.h
libs/openzap/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c

index cfbf065b06983baeb5b03b8755457cef5e147689..d773970fb50c1e9f89a1c6cb29114cab52cc6843 100644 (file)
 #pragma warning(disable:4127) 
 #endif
 
+#define zap_set_state_locked_wait(obj, s)                                              \
+       do {                                                                            \
+               int __safety = 100;                                                     \
+               zap_set_state_locked(obj, s);                                           \
+               while(__safety-- && zap_test_flag(obj, ZAP_CHANNEL_STATE_CHANGE)) {     \
+                       zap_sleep(10);                                                  \
+               }                                                                       \
+               if(!__safety) {                                                         \
+                       zap_log(ZAP_LOG_CRIT, "State change not completed\n");          \
+               }                                                                       \
+       } while(0);
+
 #define zap_wait_for_flag_cleared(obj, flag, time)                                     \
        do {                                                                            \
                int __safety = time;                                                    \
                zap_wait_for_flag_cleared(obj, ZAP_CHANNEL_STATE_CHANGE, 100);     \
        } while(0);
 
-#define zap_set_state_locked_wait(obj, s)                                              \
-       do {                                                                            \
-               int __safety = 100;                                                     \
-               zap_set_state_locked(obj, s);                                           \
-               while(__safety-- && zap_test_flag(obj, ZAP_CHANNEL_STATE_CHANGE)) {     \
-                       zap_sleep(10);                                                  \
-               }                                                                       \
-               if(!__safety) {                                                         \
-                       zap_log(ZAP_LOG_CRIT, "State change not completed\n");          \
-               }                                                                       \
-       } while(0);
-
-
 
 typedef enum {
        ZAP_STATE_CHANGE_FAIL,
index 4c4caffb9bc699eaa90c1aec9c3da381dbfd5c05..98e00f809b83fbc788e571f5bffbe7f79cee5fb0 100644 (file)
@@ -626,7 +626,7 @@ static void handle_call_start_nack(zap_span_t *span, sangomabc_connection_t *mco
                        int r = 0;
                        assert(!zap_test_flag(zchan, ZAP_CHANNEL_OUTBOUND));
        
-                       zchan->call_data = (void*)event->event_id;
+                       zchan->call_data = (void*)(intptr_t)event->event_id;
 
                        zap_mutex_lock(zchan->mutex);
                        zap_set_state_r(zchan, ZAP_CHANNEL_STATE_TERMINATING, 0, r);
@@ -992,7 +992,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
                        if (!zap_test_sflag(zchan, SFLAG_SENT_FINAL_MSG)) {
                                zap_set_sflag_locked(zchan, SFLAG_SENT_FINAL_MSG);
 
-                               if (zchan->call_data && ((uint32_t)zchan->call_data == SIGBOOST_EVENT_CALL_START_NACK)) {
+                               if (zchan->call_data && ((uint32_t)(intptr_t)zchan->call_data == SIGBOOST_EVENT_CALL_START_NACK)) {
                                        sangomabc_exec_command(mcon,
                                                                        zchan->physical_span_id-1,
                                                                        zchan->physical_chan_id-1,