]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
msvc build fix
authorMichael Jerris <mike@jerris.com>
Mon, 1 Jun 2009 18:51:19 +0000 (18:51 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 1 Jun 2009 18:51:19 +0000 (18:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13533 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index 7b51b8c231aca6eddc67c5b494a07bf88b2dfdcb..b5989b1213d19e47ef56e0122ab4f46523732e31 100644 (file)
@@ -70,12 +70,12 @@ SWITCH_STANDARD_API(nat_map_function)
        }
 
        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;
                }