Add more warning flags, fix a few new warnings

This commit is contained in:
Nils O. Selåsdal
2012-12-04 23:13:01 +01:00
parent c29b467dca
commit ad08ee8963
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ static int iomux_select_unregister_fd(struct IOMux *mux_, struct IOMuxFD *fd)
size_t i;
for(i = 0; i < mux->num_descriptors; i++) {
if(fd == mux->descriptors[i]) {
int what = fd->what; //make sure we don't alter 'what' as seen from the user
unsigned int what = fd->what; //make sure we don't alter 'what' as seen from the user
fd->what &= ~MUX_EV_MASK;
iomux_select_update_events(mux_, fd);
mux->descriptors[i] = NULL; //set the slot to NULL, the event loop needs to rebuild it.