[Freeswitch-trunk] [commit] r13533 - freeswitch/trunk/src/mod/applications/mod_commands
FreeSWITCH SVN
mikej at freeswitch.org
Mon Jun 1 11:51:20 PDT 2009
Author: mikej
Date: Mon Jun 1 13:51:19 2009
New Revision: 13533
Log:
msvc build fix
Modified:
freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Mon Jun 1 13:51:19 2009
@@ -70,12 +70,12 @@
}
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");
goto ok;
}
} 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");
goto ok;
}
More information about the Freeswitch-trunk
mailing list