diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-04 00:47:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-04 00:47:33 +0000 |
commit | e424bb52533702da31fac82d26b87e39d3ea967b (patch) | |
tree | 7dba3ceb4a8a50ce589f324a0029987c1ff22964 /usr.bin/usbhidctl | |
parent | 48771c25397e21e90627c45ee910cc54d68b0030 (diff) |
knf + new interface: hid_start() is non-exit non-stderr spewing version of hid_init(); ok matthieu millert
Diffstat (limited to 'usr.bin/usbhidctl')
-rw-r--r-- | usr.bin/usbhidctl/usbhid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c index 99cc70bf3f4..de27a1bbd37 100644 --- a/usr.bin/usbhidctl/usbhid.c +++ b/usr.bin/usbhidctl/usbhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbhid.c,v 1.5 2004/04/03 21:01:25 jmc Exp $ */ +/* $OpenBSD: usbhid.c,v 1.6 2004/06/04 00:47:32 deraadt Exp $ */ /* $NetBSD: usbhid.c,v 1.22 2002/02/20 20:30:42 christos Exp $ */ /* @@ -932,7 +932,8 @@ main(int argc, char **argv) /* NOTREACHED */ } - hid_init(table); + if (hid_start(table) == -1) + errx(1, "hid_init"); if (dev[0] != '/') { snprintf(devnamebuf, sizeof(devnamebuf), "/dev/%s%s", |