From 20c41323a72a5cc6417e46f525972900a820014f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 20 May 2007 05:47:37 +0000 Subject: [PATCH] use WP_INVALID_SOCKET for invalid handles. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@46 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/include/sangoma_tdm_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/freetdm/src/include/sangoma_tdm_api.h b/libs/freetdm/src/include/sangoma_tdm_api.h index a2ede350c3..cbaa89f379 100644 --- a/libs/freetdm/src/include/sangoma_tdm_api.h +++ b/libs/freetdm/src/include/sangoma_tdm_api.h @@ -148,13 +148,13 @@ static sng_fd_t tdmv_api_open_span_chan(int span, int chan) void tdmv_api_close_socket(sng_fd_t *sp) { - if( *sp != INVALID_HANDLE_VALUE){ + if( *sp != WP_INVALID_SOCKET){ #if defined(__WINDOWS__) CloseHandle(*sp); #else close(*sp); #endif - *sp = INVALID_HANDLE_VALUE; + *sp = WP_INVALID_SOCKET; } }