diff options
| author | christos <christos@NetBSD.org> | 2006-04-14 17:18:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-04-14 17:18:59 +0000 |
| commit | 4656123e9c0df0c8e0cf91bb2a101e32185e1b29 (patch) | |
| tree | 036e2f35ccfab9f128c94eb34e846137a91e35c6 /sys/dev | |
| parent | 24da938ec72b66bf88e95d0cbc75267bfe6f36bc (diff) | |
Use c instead of s->cur.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/hid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/hid.c b/sys/dev/usb/hid.c index aa41ff979f3..9378992b548 100644 --- a/sys/dev/usb/hid.c +++ b/sys/dev/usb/hid.c @@ -1,4 +1,4 @@ -/* $NetBSD: hid.c,v 1.23 2002/07/11 21:14:25 augustss Exp $ */ +/* $NetBSD: hid.c,v 1.24 2006/04/14 17:18:59 christos Exp $ */ /* $FreeBSD: src/sys/dev/usb/hid.c,v 1.11 1999/11/17 22:33:39 n_hibma Exp $ */ /* @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hid.c,v 1.23 2002/07/11 21:14:25 augustss Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hid.c,v 1.24 2006/04/14 17:18:59 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -300,13 +300,13 @@ hid_get_item(struct hid_data *s, struct hid_item *h) break; case 10: /* Push */ hi = malloc(sizeof *hi, M_TEMP, M_WAITOK); - *hi = s->cur; + *hi = *c; c->next = hi; break; case 11: /* Pop */ hi = c->next; oldpos = c->loc.pos; - s->cur = *hi; + *c = *hi; c->loc.pos = oldpos; free(hi, M_TEMP); break; |
