提交 43cc68d8 authored 作者: Michael Jerris's avatar Michael Jerris

msvc build fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13533 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8da02d97
...@@ -70,12 +70,12 @@ SWITCH_STANDARD_API(nat_map_function) ...@@ -70,12 +70,12 @@ SWITCH_STANDARD_API(nat_map_function)
} }
if (argv[0] && switch_stristr("add", argv[0])) { if (argv[0] && switch_stristr("add", argv[0])) {
if (switch_nat_add_mapping(atoi(argv[1]), proto) == SWITCH_STATUS_SUCCESS) { if (switch_nat_add_mapping((switch_port_t)atoi(argv[1]), proto) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "true"); stream->write_function(stream, "true");
goto ok; goto ok;
} }
} else if (argv[0] && switch_stristr("del", argv[0])) { } else if (argv[0] && switch_stristr("del", argv[0])) {
if (switch_nat_del_mapping(atoi(argv[1]), proto) == SWITCH_STATUS_SUCCESS) { if (switch_nat_del_mapping((switch_port_t)atoi(argv[1]), proto) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "true"); stream->write_function(stream, "true");
goto ok; goto ok;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论