From 3088ae53a72326b57f8b61e1247efa6ab7b3f688 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 3 Sep 2006 21:09:46 +0000 Subject: [PATCH] - add missing initializer - remove stray semicolon that prevented an ioctl from working. --- sys/dev/usb/uhid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 869da58b0846..62a1875c17ec 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhid.c,v 1.69 2006/03/28 17:38:35 thorpej Exp $ */ +/* $NetBSD: uhid.c,v 1.70 2006/09/03 21:09:46 christos Exp $ */ /* * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.69 2006/03/28 17:38:35 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.70 2006/09/03 21:09:46 christos Exp $"); #include #include @@ -113,7 +113,7 @@ dev_type_kqfilter(uhidkqfilter); const struct cdevsw uhid_cdevsw = { uhidopen, uhidclose, uhidread, uhidwrite, uhidioctl, - nostop, notty, uhidpoll, nommap, uhidkqfilter, + nostop, notty, uhidpoll, nommap, uhidkqfilter, D_OTHER, }; Static void uhid_intr(struct uhidev *, void *, u_int len); @@ -456,7 +456,7 @@ uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr, if (sc->sc_async == NULL) return (EINVAL); if (-*(int *)addr != sc->sc_async->p_pgid - && *(int *)addr != sc->sc_async->p_pid); + && *(int *)addr != sc->sc_async->p_pid) return (EPERM); break;