diff options
author | 2002-06-19 02:43:40 +0000 | |
---|---|---|
committer | 2002-06-19 02:43:40 +0000 | |
commit | ca6a154dede2584ef30d08f4615992ccd6f123b9 (patch) | |
tree | 7102c7b7e8869cbfc1e6fddf3bb08ebf7d4c5455 | |
parent | KNF, -Wall, and other cleanups. still does not failover 100% correctly (diff) | |
download | wireguard-openbsd-ca6a154dede2584ef30d08f4615992ccd6f123b9.tar.xz wireguard-openbsd-ca6a154dede2584ef30d08f4615992ccd6f123b9.zip |
kq: it did not work like this and it seem to be working, from the denver whereabouts
-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 |