mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
strtoll correction for windows
This commit is contained in:
parent
542e7153fc
commit
8b14f81343
@ -211,7 +211,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
|
|||||||
uint32_t uintval;
|
uint32_t uintval;
|
||||||
if (value) {
|
if (value) {
|
||||||
if (switch_is_number(value)) {
|
if (switch_is_number(value)) {
|
||||||
uintval = (uint32_t) strtoll(value, NULL, 10);
|
uintval = (uint32_t) strtol(value, NULL, 10);
|
||||||
} else {
|
} else {
|
||||||
uintval = (uint32_t) (uintptr_t) item->defaultvalue;
|
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",
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid value [%s] for parameter [%s], setting default [%u]\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user