]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Silence a warning in clang-3.5 dealing with implicit conversion from 64bit to 32bit...
authorWilliam King <william.king@quentustech.com>
Sun, 3 Aug 2014 02:41:44 +0000 (19:41 -0700)
committerWilliam King <william.king@quentustech.com>
Sun, 3 Aug 2014 02:41:44 +0000 (19:41 -0700)
src/switch_channel.c

index ccc43aefef6caee6e9ca67256d6112df45c4db14..d9831107919f85bc9270012f331452e4f6341341 100644 (file)
@@ -3732,7 +3732,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_answer(switch_channel_t *
                const char *delay;
 
                if ((delay = switch_channel_get_variable(channel, "answer_delay"))) {
-                       long msec = atol(delay);
+                       uint32_t msec = atoi(delay);
                        
                        if (msec) {
                                switch_ivr_sleep(channel->session, msec, SWITCH_TRUE, NULL);