mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Sync with NetBSD: Keep the bit position even when the report descriptor says POP.
This commit is contained in:
parent
dc886d4d77
commit
c7de838d37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58955
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hid.c,v 1.9 1999/10/13 08:10:55 augustss Exp $ */
|
||||
/* $NetBSD: hid.c,v 1.13 2000/03/27 12:33:53 augustss Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
|
@ -125,7 +125,8 @@ hid_get_item(s, h)
|
|||
struct hid_item *h;
|
||||
{
|
||||
struct hid_item *c = &s->cur;
|
||||
int bTag, bType, bSize;
|
||||
unsigned int bTag, bType, bSize;
|
||||
struct hid_location oldloc;
|
||||
u_char *data;
|
||||
int32_t dval;
|
||||
u_char *p;
|
||||
|
@ -299,7 +300,9 @@ hid_get_item(s, h)
|
|||
break;
|
||||
case 11: /* Pop */
|
||||
hi = c->next;
|
||||
oldloc = c->loc;
|
||||
s->cur = *hi;
|
||||
c->loc = oldloc;
|
||||
free(hi, M_TEMP);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue