]> arthur.barton.de Git - ngircd-alex.git/commitdiff
last cleanup accidentally broke kqueue backend.
authorFlorian Westphal <fw@strlen.de>
Mon, 29 Aug 2005 13:58:54 +0000 (13:58 +0000)
committerFlorian Westphal <fw@strlen.de>
Mon, 29 Aug 2005 13:58:54 +0000 (13:58 +0000)
src/ngircd/io.c

index 4f0b728058a54a152c569037c9592161c81c37ef..6e6f5985afab1e1a934a557bc352e93aa9a7bc02 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: io.c,v 1.8 2005/08/27 23:23:54 fw Exp $";
+static char UNUSED id[] = "$Id: io.c,v 1.9 2005/08/29 13:58:54 fw Exp $";
 
 #include <assert.h>
 #include <stdlib.h>
@@ -307,7 +307,7 @@ io_event_add_kqueue(int fd, short what)
                filter |= EVFILT_WRITE;
 
        if (len >= 100) {
-               (void)array_trunc(&io_evcache);
+               (void)io_event_kqueue_commit_cache();
        }
 
        EV_SET(&kev, fd, filter, EV_ADD | EV_ENABLE, 0, 0, NULL);