change log for rtems (2011-11-07)

Ralf Corsepius ralf.corsepius at rtems.org
Mon Nov 7 18:18:19 UTC 2011


On 11/07/2011 10:10 AM, rtems-vc at rtems.org wrote:

> diff -u rtems/c/src/lib/libbsp/arm/lpc24xx/console/console-config.c:1.7 rtems/c/src/lib/libbsp/arm/lpc24xx/console/console-config.c:1.8
> --- rtems/c/src/lib/libbsp/arm/lpc24xx/console/console-config.c:1.7	Tue Oct 18 13:25:35 2011
> +++ rtems/c/src/lib/libbsp/arm/lpc24xx/console/console-config.c	Mon Nov  7 02:33:14 2011
> @@ -177,5 +177,6 @@
>   };
>
>   #define LPC24XX_UART_COUNT \
> -  (sizeof(Console_Configuration_Ports) / sizeof(console_tbl))
> +  (sizeof(Console_Configuration_Ports) \
> +    / sizeof(Console_Configuration_Ports [0]))
>   unsigned long Console_Configuration_Count = LPC24XX_UART_COUNT;

Minor nit: This should be size_t instead of long, because the size of a 
division of sizes is of type size_t.

Ralf




More information about the vc mailing list