src/lib/event_handler.c in trema-0.2.5 vs src/lib/event_handler.c in trema-0.2.6

- old
+ new

@@ -114,11 +114,11 @@ static void _finalize_event_handler() { if ( event_last != event_list ) { - warn( "Event Handler finalized with %i fd event handlers still active. (%i, ...)", + warn( "Event Handler finalized with %ti fd event handlers still active. (%i, ...)", ( event_last - event_list ), ( event_last > event_list ? event_list->fd : -1 ) ); return; } event_handler_state = EVENT_HANDLER_FINALIZED; @@ -174,11 +174,11 @@ // wait for the next select call. if ( current_event.fd == event_itr->fd ) { event_itr = event_itr + 1; } else { - debug( "run_event_handler_once: event fd is changed ( current = %d, new = %d )", current_event.fd, event_itr->fd ) ; + debug( "run_event_handler_once: event fd is changed ( current = %d, new = %d )", current_event.fd, event_itr->fd ); } } return true; } @@ -258,10 +258,10 @@ static void _delete_fd_handler( int fd ) { debug( "Deleting event handler for fd %i.", fd ); - event_fd* event = event_list; + event_fd *event = event_list; while ( event != event_last && event->fd != fd ) { event++; }