diff options
author | 2006-11-01 03:37:23 +0000 | |
---|---|---|
committer | 2006-11-01 03:37:23 +0000 | |
commit | 9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077 (patch) | |
tree | ca68b9f0ef2b0dea75b7ad29630bbfb6fd2c49de /sys/dev/usb/uhid.c | |
parent | Adjust existing ikedel tests for aggressive mode support (we now (diff) | |
download | wireguard-openbsd-9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077.tar.xz wireguard-openbsd-9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077.zip |
poll errors should be POLLERR, not some random E value
from alexandre ratchov. ok claudio
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r-- | sys/dev/usb/uhid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index dfda586c832..73d6c167b08 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhid.c,v 1.29 2006/06/23 06:27:11 miod Exp $ */ +/* $OpenBSD: uhid.c,v 1.30 2006/11/01 03:37:24 tedu Exp $ */ /* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -549,7 +549,7 @@ uhidpoll(dev_t dev, int events, usb_proc_ptr p) USB_GET_SC(uhid, UHIDUNIT(dev), sc); if (sc->sc_dying) - return (EIO); + return (POLLERR); s = splusb(); if (events & (POLLOUT | POLLWRNORM)) |