From 50436469ee80d08e90e8a485c2ef976a75b712c0 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 27 Jan 2007 18:31:51 +0000 Subject: Fixed various gcc warnings especially related to ticket #82 when particular codecs are disabled git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@911 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/ioqueue_select.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pjlib/src/pj') diff --git a/pjlib/src/pj/ioqueue_select.c b/pjlib/src/pj/ioqueue_select.c index 2cdb3eb2..8d24ae82 100644 --- a/pjlib/src/pj/ioqueue_select.c +++ b/pjlib/src/pj/ioqueue_select.c @@ -315,7 +315,12 @@ PJ_DEF(pj_status_t) pj_ioqueue_register_sock( pj_pool_t *pool, pj_ioqueue_key_t **p_key) { pj_ioqueue_key_t *key = NULL; +#if defined(PJ_WIN32) && PJ_WIN32!=0 || \ + defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 + u_long value; +#else pj_uint32_t value; +#endif pj_status_t rc = PJ_SUCCESS; PJ_ASSERT_RETURN(pool && ioqueue && sock != PJ_INVALID_SOCKET && @@ -354,7 +359,7 @@ PJ_DEF(pj_status_t) pj_ioqueue_register_sock( pj_pool_t *pool, value = 1; #if defined(PJ_WIN32) && PJ_WIN32!=0 || \ defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 - if (ioctlsocket(sock, FIONBIO, (u_long*)&value)) { + if (ioctlsocket(sock, FIONBIO, &value)) { #else if (ioctl(sock, FIONBIO, &value)) { #endif -- cgit v1.2.3