Date: Sat, 13 Nov 2010 19:50:05 +0000 From: Alexander Best <arundel@freebsd.org> To: Hans Petter Selasky <hselasky@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r215254 - head/sys/dev/usb/input Message-ID: <20101113195005.GA90722@freebsd.org> In-Reply-To: <201011131926.oADJQjIH057482@svn.freebsd.org> References: <201011131926.oADJQjIH057482@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat Nov 13 10, Hans Petter Selasky wrote: > Author: hselasky > Date: Sat Nov 13 19:26:45 2010 > New Revision: 215254 > URL: http://svn.freebsd.org/changeset/base/215254 > > Log: > Fix compiler warnings. thanks. :) > > Submitted by: Alexander Best (arundel) > Approved by: thompsa (mentor) > > Modified: > head/sys/dev/usb/input/uhid.c > > Modified: head/sys/dev/usb/input/uhid.c > ============================================================================== > --- head/sys/dev/usb/input/uhid.c Sat Nov 13 19:25:11 2010 (r215253) > +++ head/sys/dev/usb/input/uhid.c Sat Nov 13 19:26:45 2010 (r215254) > @@ -672,7 +672,7 @@ uhid_attach(device_t dev) > if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE) { > > sc->sc_repdesc_size = sizeof(uhid_graphire_report_descr); > - sc->sc_repdesc_ptr = &uhid_graphire_report_descr; > + sc->sc_repdesc_ptr = (void *)&uhid_graphire_report_descr; > sc->sc_flags |= UHID_FLAG_STATIC_DESC; > > } else if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE3_4X5) { > @@ -693,7 +693,7 @@ uhid_attach(device_t dev) > usbd_errstr(error)); > } > sc->sc_repdesc_size = sizeof(uhid_graphire3_4x5_report_descr); > - sc->sc_repdesc_ptr = &uhid_graphire3_4x5_report_descr; > + sc->sc_repdesc_ptr = (void *)&uhid_graphire3_4x5_report_descr; > sc->sc_flags |= UHID_FLAG_STATIC_DESC; > } > } else if ((uaa->info.bInterfaceClass == UICLASS_VENDOR) && > @@ -702,7 +702,7 @@ uhid_attach(device_t dev) > > /* the Xbox 360 gamepad has no report descriptor */ > sc->sc_repdesc_size = sizeof(uhid_xb360gp_report_descr); > - sc->sc_repdesc_ptr = &uhid_xb360gp_report_descr; > + sc->sc_repdesc_ptr = (void *)&uhid_xb360gp_report_descr; > sc->sc_flags |= UHID_FLAG_STATIC_DESC; > } > if (sc->sc_repdesc_ptr == NULL) { -- a13x
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101113195005.GA90722>