From: Giovanni Maruzzelli Date: Tue, 23 Feb 2010 02:31:37 +0000 (+0000) Subject: skypiax: shut up windows compiler X-Git-Tag: v1.0.6~402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cc72e256aa4495d212b23854c3c9645ea912b40;p=thirdparty%2Ffreeswitch.git skypiax: shut up windows compiler git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16729 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c index 56b7e59e92..c8b2251637 100644 --- a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c +++ b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c @@ -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;