Date: Thu, 28 Jul 2011 18:39:47 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r224483 - projects/hid/lib/libusbhid Message-ID: <201107281839.p6SIdlgo014696@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Jul 28 18:39:47 2011 New Revision: 224483 URL: http://svn.freebsd.org/changeset/base/224483 Log: Do not return usage_minimum/usage_maximum fields for HIO_VARIABLE items. They are unrolled into usages inside hid_get_item(), and returning extra range may confuse applications, as it does for usbhidaction. Modified: projects/hid/lib/libusbhid/parse.c Modified: projects/hid/lib/libusbhid/parse.c ============================================================================== --- projects/hid/lib/libusbhid/parse.c Thu Jul 28 17:45:59 2011 (r224482) +++ projects/hid/lib/libusbhid/parse.c Thu Jul 28 18:39:47 2011 (r224483) @@ -322,6 +322,8 @@ hid_get_item(hid_data_t s, hid_item_t *h * one and one item: */ c->report_count = 1; + c->usage_minimum = 0; + c->usage_maximum = 0; } else { s->ncount = 1; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107281839.p6SIdlgo014696>