change log for rtems (2010-04-25)
Ralf Corsepius
ralf.corsepius at rtems.org
Mon Apr 26 03:31:27 UTC 2010
On 04/26/2010 05:10 AM, rtems-vc at rtems.org wrote:
> *joel*:
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> * console/fbcons.c: Fix warnings.
>
> M 1.70 c/src/lib/libbsp/arm/csb337/ChangeLog
> M 1.4 c/src/lib/libbsp/arm/csb337/console/fbcons.c
>
> diff -u rtems/c/src/lib/libbsp/arm/csb337/ChangeLog:1.69 rtems/c/src/lib/libbsp/arm/csb337/ChangeLog:1.70
> --- rtems/c/src/lib/libbsp/arm/csb337/ChangeLog:1.69 Fri Apr 9 15:24:56 2010
> +++ rtems/c/src/lib/libbsp/arm/csb337/ChangeLog Sun Apr 25 21:24:36 2010
> @@ -1,3 +1,7 @@
> +2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
> +
> + * console/fbcons.c: Fix warnings.
> +
> 2010-04-09 Thomas Doerfler<Thomas.Doerfler at embedded-brains.de>
>
> * startup/bspstart.c, network/network.c: make irq data types
>
> diff -u rtems/c/src/lib/libbsp/arm/csb337/console/fbcons.c:1.3 rtems/c/src/lib/libbsp/arm/csb337/console/fbcons.c:1.4
> --- rtems/c/src/lib/libbsp/arm/csb337/console/fbcons.c:1.3 Mon Nov 30 16:00:35 2009
> +++ rtems/c/src/lib/libbsp/arm/csb337/console/fbcons.c Sun Apr 25 21:24:36 2010
> @@ -27,7 +27,7 @@
> static int fbcons_first_open(int major, int minor, void *arg);
> static int fbcons_last_close(int major, int minor, void *arg);
> static int fbcons_read(int minor);
> -static int fbcons_write(int minor, const char *buf, int len);
> +static ssize_t fbcons_write(int minor, const char *buf, size_t len);
> static void fbcons_init(int minor);
> static void fbcons_write_polled(int minor, char c);
> static int fbcons_set_attributes(int minor, const struct termios *t);
> @@ -91,7 +91,7 @@
> *
> * return 1 on success, -1 on error
> */
> -static int fbcons_write(int minor, const char *buf, int len)
> +static ssize_t fbcons_write(int minor, const char *buf, size_t len)
> {
> int i;
>
>
>
> *joel*:
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> * console/console.c: Fix warnings.
>
> M 1.56 c/src/lib/libbsp/arm/nds/ChangeLog
> M 1.5 c/src/lib/libbsp/arm/nds/console/console.c
>
> diff -u rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.55 rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.56
> --- rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.55 Sun Apr 25 20:30:08 2010
> +++ rtems/c/src/lib/libbsp/arm/nds/ChangeLog Sun Apr 25 21:28:02 2010
> @@ -1,5 +1,9 @@
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> + * console/console.c: Fix warnings.
> +
> +2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
> +
> * startup/bspstart.c: Fix warning.
>
> 2010-04-09 Thomas Doerfler<Thomas.Doerfler at embedded-brains.de>
>
> diff -u rtems/c/src/lib/libbsp/arm/nds/console/console.c:1.4 rtems/c/src/lib/libbsp/arm/nds/console/console.c:1.5
> --- rtems/c/src/lib/libbsp/arm/nds/console/console.c:1.4 Mon Dec 7 10:22:43 2009
> +++ rtems/c/src/lib/libbsp/arm/nds/console/console.c Sun Apr 25 21:28:02 2010
> @@ -69,8 +69,8 @@
> * console write operation.
> */
>
> -static int
> -nds_write (int minor, const char *buf, int len)
> +static ssize_t
> +nds_write (int minor, const char *buf, size_t len)
> {
> int count;
>
>
>
> *joel*:
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> * console/uart.c: Fix warnings.
>
> M 1.59 c/src/lib/libbsp/arm/gp32/ChangeLog
> M 1.6 c/src/lib/libbsp/arm/gp32/console/uart.c
>
> diff -u rtems/c/src/lib/libbsp/arm/gp32/ChangeLog:1.58 rtems/c/src/lib/libbsp/arm/gp32/ChangeLog:1.59
> --- rtems/c/src/lib/libbsp/arm/gp32/ChangeLog:1.58 Fri Apr 9 15:24:56 2010
> +++ rtems/c/src/lib/libbsp/arm/gp32/ChangeLog Sun Apr 25 21:33:57 2010
> @@ -1,3 +1,7 @@
> +2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
> +
> + * console/uart.c: Fix warnings.
> +
> 2010-04-09 Thomas Doerfler<Thomas.Doerfler at embedded-brains.de>
>
> * Makefile.am, startup/bspstart.c: make irq data types consistent,
>
> diff -u rtems/c/src/lib/libbsp/arm/gp32/console/uart.c:1.5 rtems/c/src/lib/libbsp/arm/gp32/console/uart.c:1.6
> --- rtems/c/src/lib/libbsp/arm/gp32/console/uart.c:1.5 Sun Nov 29 08:53:00 2009
> +++ rtems/c/src/lib/libbsp/arm/gp32/console/uart.c Sun Apr 25 21:33:57 2010
> @@ -40,7 +40,7 @@
> static int uart_first_open(int major, int minor, void *arg);
> static int uart_last_close(int major, int minor, void *arg);
> static int uart_read(int minor);
> -static int uart_write(int minor, const char *buf, int len);
> +static ssize_t uart_write(int minor, const char *buf, size_t len);
> static void uart_init(int minor);
> static void uart_write_polled(int minor, char c);
> static int uart_set_attributes(int minor, const struct termios *t);
> @@ -153,7 +153,7 @@
> *
> * return 1 on success, -1 on error
> */
> -static int uart_write(int minor, const char *buf, int len)
> +static ssize_t uart_write(int minor, const char *buf, size_t len)
> {
> int i;
>
>
>
> *joel*:
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Fix warning.
>
> M 1.2270 cpukit/ChangeLog
> M 1.4 cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c
>
> diff -u rtems/cpukit/ChangeLog:1.2269 rtems/cpukit/ChangeLog:1.2270
> --- rtems/cpukit/ChangeLog:1.2269 Sun Apr 25 19:50:15 2010
> +++ rtems/cpukit/ChangeLog Sun Apr 25 21:43:30 2010
> @@ -1,5 +1,9 @@
> 2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
>
> + * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Fix warning.
> +
> +2010-04-25 Joel Sherrill<joel.sherrilL at OARcorp.com>
> +
> * libmisc/stringto/stringto_template.h: Remove warning.
>
> 2010-04-25 Joel Sherrill<joel.sherrill at oarcorp.com>
>
> diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.3 rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.4
> --- rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.3 Fri Mar 26 23:04:40 2010
> +++ rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c Sun Apr 25 21:43:30 2010
> @@ -385,7 +385,7 @@
> printf (" Bit clear value : %d\n", RTEMS_RFS_BITMAP_BIT_CLEAR);
> printf (" Num bit per element : %zd\n", rtems_rfs_bitmap_element_bits ());
>
> - srand (0x23984237);
> + srand (0x23984237UL);
This change is wrong.
srand takes an "unsigned int", not an "unsigned long" as argument:
void srand(unsigned int seed);
=> For the code to be portable, this constant's value needs to be
"shortened".
Ralf
More information about the vc
mailing list