summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index ad441b7cffc..d72d5e150b9 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.78 2020/04/03 08:24:53 mpi Exp $ */
+/* $OpenBSD: uhid.c,v 1.79 2020/04/07 13:27:51 visa Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -447,7 +447,7 @@ filt_uhidrdetach(struct knote *kn)
int s;
s = splusb();
- SLIST_REMOVE(&sc->sc_rsel.si_note, kn, knote, kn_selnext);
+ klist_remove(&sc->sc_rsel.si_note, kn);
splx(s);
}
@@ -505,7 +505,7 @@ uhidkqfilter(dev_t dev, struct knote *kn)
kn->kn_hook = (void *)sc;
s = splusb();
- SLIST_INSERT_HEAD(klist, kn, kn_selnext);
+ klist_insert(klist, kn);
splx(s);
return (0);