From: Mike Jerris Date: Fri, 7 Oct 2016 20:13:33 +0000 (-0400) Subject: FS-9581: fix msrp compile fail on windows X-Git-Tag: v1.8.0~1193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0764d9adddb4dc4370a7cab492dd91b30da9d39e;p=thirdparty%2Ffreeswitch.git FS-9581: fix msrp compile fail on windows --- diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 26eac15eb1..af7bcffd93 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -845,11 +845,11 @@ static void *SWITCH_THREAD_FUNC msrp_worker(switch_thread_t *thread, void *obj) if (csock->secure) { // tls? int secure_established = 0; int sanity = 10; - switch_os_socket_t sockdes = -1; + switch_os_socket_t sockdes = SWITCH_SOCK_INVALID; switch_os_sock_get(&sockdes, csock->sock); // switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "socket: %d\n", sockdes); - switch_assert(sockdes > -1); + switch_assert(sockdes != SWITCH_SOCK_INVALID); ssl = SSL_new(globals.ssl_ctx); assert(ssl);