openbsd-ports/sysutils/nut/patches/patch-drivers_usbhid-ups_c
sthen 9124dca4c6 - update nut to 2.6.0 (major documentation revamp and support for new
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
2011-03-09 11:00:55 +00:00

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... */