mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
Tue May 20 13:32:51 EDT 2008 Pekka.Pessi@nokia.com
* su_wait.c: fixed klocwork issues git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8625 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
913a502a74
commit
02c84a6739
@ -1 +1 @@
|
||||
Sun May 25 11:11:31 EDT 2008
|
||||
Sun May 25 11:12:25 EDT 2008
|
||||
|
@ -186,16 +186,14 @@ int su_wait_destroy(su_wait_t *waitobj)
|
||||
{
|
||||
#if SU_HAVE_WINSOCK
|
||||
su_wait_t w0 = NULL;
|
||||
assert(waitobj != NULL);
|
||||
if (*waitobj)
|
||||
WSACloseEvent(*waitobj);
|
||||
#elif SU_HAVE_POLL || HAVE_SELECT
|
||||
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
|
||||
#else
|
||||
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
|
||||
#endif
|
||||
assert(waitobj != NULL);
|
||||
*waitobj = w0;
|
||||
|
||||
#endif
|
||||
return waitobj ? 0 : -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user