aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/events_libevent.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-15 11:19:46 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-15 11:19:46 +0200
commitb8b8c6c65ce89f676d269a1897e3a938895cabde (patch)
treea444792e6d3479ee449805c1e270f09ed3a1692c /protocols/events_libevent.c
parent5330e3d7fdb323ee4176b36639b59f6f90c22617 (diff)
Shutting up annoying compilers.
Diffstat (limited to 'protocols/events_libevent.c')
-rw-r--r--protocols/events_libevent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/events_libevent.c b/protocols/events_libevent.c
index 67f973b9..f878f093 100644
--- a/protocols/events_libevent.c
+++ b/protocols/events_libevent.c
@@ -228,12 +228,12 @@ void closesocket( int fd )
get a little bit messed up. So this little function will remove the handlers
properly before closing a socket. */
- if( b_ev = g_hash_table_lookup( read_hash, &fd ) )
+ if( ( b_ev = g_hash_table_lookup( read_hash, &fd ) ) )
{
event_debug( "Warning: fd %d still had a read event handler when shutting down.\n", fd );
b_event_remove( b_ev->id );
}
- if( b_ev = g_hash_table_lookup( write_hash, &fd ) )
+ if( ( b_ev = g_hash_table_lookup( write_hash, &fd ) ) )
{
event_debug( "Warning: fd %d still had a write event handler when shutting down.\n", fd );
b_event_remove( b_ev->id );