9124dca4c6
devices, including APC 5G, various Eaton, HP, and Tripp Lite models, and a number of USB HID devices) - build the snmp package by default - use correct user/group names in MESSAGE
14 lines
523 B
Plaintext
14 lines
523 B
Plaintext
$OpenBSD: patch-drivers_usbhid-ups_c,v 1.2 2011/03/09 11:00:55 sthen Exp $
|
|
--- drivers/usbhid-ups.c.orig Mon Jan 10 10:30:30 2011
|
|
+++ drivers/usbhid-ups.c Sat Feb 26 14:37:36 2011
|
|
@@ -1228,7 +1228,9 @@ static bool_t hid_ups_walk(walkmode_t mode)
|
|
|
|
case -ETIMEDOUT: /* Connection timed out */
|
|
case -EOVERFLOW: /* Value too large for defined data type */
|
|
+#ifdef EPROTO
|
|
case -EPROTO: /* Protocol error */
|
|
+#endif
|
|
case -EPIPE: /* Broken pipe */
|
|
default:
|
|
/* Don't know what happened, try again later... */
|