[rtems commit] Updated Legacy code in arm gumstix

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 11 07:19:13 UTC 2013


On 07/10/2013 07:32 PM, Joel Sherrill wrote:
> diff --git a/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c b/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
> index 5db0433..ef8ae4e 100644
> --- a/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
> +++ b/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
> @@ -350,9 +350,9 @@ ne_interrupt_handler (rtems_irq_hdl_param handle)
>   /* Turn NE2000 interrupts on.  */
>
>   static void
> -ne_interrupt_on (const rtems_irq_connect_data *irq)
> +ne_interrupt_on (const void * handle)
>   {
> -  struct ne_softc *sc = irq->handle;
> +  struct ne_softc *sc = handle;
>
>   #ifdef DEBUG_NE
>     printk ("ne_interrupt_on()\n");

Here we cast the const qualifier away.  Why do we even have the void * 
parameter here and not struct ne_softc *?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list