diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-02 22:20:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-02 22:20:09 +0000 |
commit | b465f3e780026bbb1f86ec7a6203a06672328984 (patch) | |
tree | d469d9b497adf66bfe8e193b90c248fdbe819588 /sys/arch/sparc | |
parent | 97d8260479f882ea93b1225536948b7ce658b9dd (diff) |
kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO.
ok tedu deraadt
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/tctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/tctrl.c b/sys/arch/sparc/dev/tctrl.c index 5fc11d2ed3d..a72b9aafa74 100644 --- a/sys/arch/sparc/dev/tctrl.c +++ b/sys/arch/sparc/dev/tctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tctrl.c,v 1.20 2009/02/26 17:19:47 oga Exp $ */ +/* $OpenBSD: tctrl.c,v 1.21 2011/07/02 22:20:07 nicm Exp $ */ /* $NetBSD: tctrl.c,v 1.2 1999/08/11 00:46:06 matt Exp $ */ /*- @@ -1184,7 +1184,7 @@ apmkqfilter(dev_t dev, struct knote *kn) kn->kn_fop = &apmread_filtops; break; default: - return (1); + return (EINVAL); } kn->kn_hook = (caddr_t)sc; |