Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libpuffs/framebuf.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libpuffs/framebuf.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.30 retrieving revision 1.31 diff -u -p -r1.30 -r1.31 --- src/lib/libpuffs/framebuf.c 2010/01/12 18:42:38 1.30 +++ src/lib/libpuffs/framebuf.c 2011/12/19 15:36:26 1.31 @@ -1,4 +1,4 @@ -/* $NetBSD: framebuf.c,v 1.30 2010/01/12 18:42:38 pooka Exp $ */ +/* $NetBSD: framebuf.c,v 1.31 2011/12/19 15:36:26 riastradh Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -35,7 +35,7 @@ #include #if !defined(lint) -__RCSID("$NetBSD: framebuf.c,v 1.30 2010/01/12 18:42:38 pooka Exp $"); +__RCSID("$NetBSD: framebuf.c,v 1.31 2011/12/19 15:36:26 riastradh Exp $"); #endif /* !lint */ #include @@ -561,9 +561,8 @@ puffs_framev_enqueue_waitevent(struct pu EV_SET(&kev, fd, EVFILT_READ, EV_ENABLE, 0, 0, (uintptr_t)fio); - rv = kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL); - if (rv != 0) - return errno; + if (kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL) == -1) + return -1; if (*what & PUFFS_FBIO_READ) fio->rwait++;