commit - 5f87474a740b441d701390492c595f7bd4fec656
commit + 1a46b37bd586a5678f41447eb4b0f8d4374a3c74
blob - 5cfcaf8aea1357dcc39e1d33a6a6c946a80f42e4
blob + 7c1a55175e003be2620079dac898e7e7cc3b6339
--- src/ngircd/io.c
+++ src/ngircd/io.c
#include "portab.h"
-static char UNUSED id[] = "$Id: io.c,v 1.5 2005/07/14 14:35:38 fw Exp $";
+static char UNUSED id[] = "$Id: io.c,v 1.6 2005/08/27 20:25:54 fw Exp $";
#include <assert.h>
#include <stdlib.h>
struct kevent kev;
short filter = 0;
unsigned int len = array_length(&io_evcache, sizeof kev);
- bool ret;
if (what & IO_WANTREAD)
filter = EVFILT_READ;
filter |= EVFILT_WRITE;
if (len >= 100) {
- ret = io_event_kqueue_commit_cache();
- if (ret)
- array_trunc(&io_evcache);
+ (void)array_trunc(&io_evcache);
}
EV_SET(&kev, fd, filter, EV_ADD | EV_ENABLE, 0, 0, NULL);
{
int i, total = 0, ret;
struct kevent kev[100];
- struct kevents *newevents;
+ struct kevent *newevents;
struct timespec ts;
int newevents_len;
short type;