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:
Michael Jerris 2008-05-25 15:13:10 +00:00
parent 913a502a74
commit 02c84a6739
2 changed files with 3 additions and 5 deletions

View File

@ -1 +1 @@
Sun May 25 11:11:31 EDT 2008
Sun May 25 11:12:25 EDT 2008

View File

@ -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;
}