diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-06-19 02:43:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-06-19 02:43:41 +0000 |
commit | 88035020ccea260af853ae6767b84b588e68c69a (patch) | |
tree | 226270d06ddf87396485053edfbcae9965a45ec0 /sys/arch | |
parent | 01b18f48e6fa392ebaf6bf1f2b50bc89aa793852 (diff) |
kq: it did not work like this and it seem to be working, from the denver whereabouts
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/apm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index b83b1a52369..a88ec02aec6 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.53 2002/03/14 03:15:53 millert Exp $ */ +/* $OpenBSD: apm.c,v 1.54 2002/06/19 02:43:40 mickey Exp $ */ /*- * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. @@ -1121,11 +1121,9 @@ filt_apmread(kn, hint) struct knote *kn; long hint; { - /* XXX weird kqueue_scan() semantics */ - if (hint && !kn->kn_data) - kn->kn_data = (int)hint; + kn->kn_data = (int)hint; - return (1); + return (hint != 0); } int |