Sync with NetBSD:
Fix the saving of the location at pop properly. Only save the position and not the complete locator. (sp? s/sav/saf/g if appropriate)
This commit is contained in:
parent
91806b2f48
commit
923e94d400
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hid.c,v 1.13 2000/03/27 12:33:53 augustss Exp $ */
|
||||
/* $NetBSD: hid.c,v 1.15 2000/04/27 15:26:46 augustss Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
@ -126,7 +126,7 @@ hid_get_item(s, h)
|
||||
{
|
||||
struct hid_item *c = &s->cur;
|
||||
unsigned int bTag, bType, bSize;
|
||||
struct hid_location oldloc;
|
||||
u_int32_t oldpos;
|
||||
u_char *data;
|
||||
int32_t dval;
|
||||
u_char *p;
|
||||
@ -300,9 +300,9 @@ hid_get_item(s, h)
|
||||
break;
|
||||
case 11: /* Pop */
|
||||
hi = c->next;
|
||||
oldloc = c->loc;
|
||||
oldpos = c->loc.pos;
|
||||
s->cur = *hi;
|
||||
c->loc = oldloc;
|
||||
c->loc.pos = oldpos;
|
||||
free(hi, M_TEMP);
|
||||
break;
|
||||
default:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hid.h,v 1.2 1998/07/24 20:57:46 augustss Exp $ */
|
||||
/* $NetBSD: hid.h,v 1.5 2000/04/27 15:26:46 augustss Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user