diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-09-20 16:07:43 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-09-20 16:07:43 +0000 |
commit | a08ab04bba9b26e0012c3c1483662d01e4d55661 (patch) | |
tree | 4c91fa599aece3a6f717e3444c997e39e2b6fe8f /driver/openbsd-input-ws | |
parent | 96f72476e5ffb02efed74bf37de4b32e938b8dd3 (diff) |
Failing to open the input device is a fatal error.
Diffstat (limited to 'driver/openbsd-input-ws')
-rw-r--r-- | driver/openbsd-input-ws/src/ws.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/driver/openbsd-input-ws/src/ws.c b/driver/openbsd-input-ws/src/ws.c index 52b4afda2..3cae91b91 100644 --- a/driver/openbsd-input-ws/src/ws.c +++ b/driver/openbsd-input-ws/src/ws.c @@ -13,7 +13,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: ws.c,v 1.5 2007/09/01 09:45:39 matthieu Exp $ */ +/* $OpenBSD: ws.c,v 1.6 2008/09/20 16:07:42 matthieu Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -648,8 +648,10 @@ wsOpen(InputInfoPtr pInfo) DBG(1, ErrorF("WS open %s\n", priv->devName)); pInfo->fd = xf86OpenSerial(pInfo->options); - if (pInfo->fd == -1) - xf86Msg(X_WARNING, "%s: cannot open input device\n", pInfo->name); + if (pInfo->fd == -1) { + xf86Msg(X_ERROR, "%s: cannot open input device\n", pInfo->name); + return !Success; + } return Success; } |