]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypiax: shut up windows compiler
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 23 Feb 2010 02:31:37 +0000 (02:31 +0000)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 23 Feb 2010 02:31:37 +0000 (02:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16729 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_skypiax/skypiax_protocol.c

index 56b7e59e9221b65c984302e65252c7252511c5f2..c8b22516376e860af4480085a6b78d0102d73c66 100644 (file)
@@ -54,8 +54,11 @@ int skypiax_socket_create_and_bind(private_t * tech_pvt, unsigned short *which_p
 
        if (*which_port != 0)
                start_port = *which_port;
-
-       start_port=next_port();
+#ifdef WIN32
+       start_port=(unsigned short)next_port();
+#else
+       start_port=(unsigned short)next_port();
+#endif
        my_addr.sin_port = htons(start_port);
        //fcntl(s, F_SETFL, O_NONBLOCK);
        //tech_pvt->tcp_cli_port = start_port;