]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
strtoll correction for windows
authorJeff Lenk <jeff@jefflenk.com>
Tue, 23 Oct 2012 17:08:12 +0000 (12:08 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 23 Oct 2012 17:08:40 +0000 (12:08 -0500)
src/switch_xml_config.c

index 8b13f12fde8e6b095ba47a36b83a65a1e988c919..888ed2c0f574da15a7d435006d21dbf8de2f7f84 100644 (file)
@@ -211,7 +211,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
                                uint32_t uintval;
                                if (value) {
                                        if (switch_is_number(value)) {
-                                               uintval = (uint32_t) strtoll(value, NULL, 10);
+                                               uintval = (uint32_t) strtol(value, NULL, 10);
                                        } else {
                                                uintval = (uint32_t) (uintptr_t) item->defaultvalue;
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid value [%s] for parameter [%s], setting default [%u]\n",