From 764d531b3b30727c216222bbb71bf28cbe4f8652 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 11 Oct 2011 07:57:46 +0000 Subject: [PATCH] =?UTF-8?q?2011-10-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/src/termios.c, libcsupport/include/rtems/termiostypes.h (rtems_termios_puts): Use size_t for buffer size. --- cpukit/ChangeLog | 6 ++++++ cpukit/libcsupport/include/rtems/termiostypes.h | 2 +- cpukit/libcsupport/src/termios.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b94f81c020..6811c89ace 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2011-10-11 Ralf Corsépius + + * libcsupport/src/termios.c, + libcsupport/include/rtems/termiostypes.h (rtems_termios_puts): + Use size_t for buffer size. + 2011-10-10 Ralf Corsépius * libfs/src/devfs/devfs_mknod.c: Remove const cast. diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h index 08c49c86bc..68d5443fa6 100644 --- a/cpukit/libcsupport/include/rtems/termiostypes.h +++ b/cpukit/libcsupport/include/rtems/termiostypes.h @@ -164,7 +164,7 @@ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty); */ void rtems_termios_puts ( const void *buf, - int len, + size_t len, struct rtems_termios_tty *tty ); diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index 89f155b6cc..094bcfc462 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -628,7 +628,7 @@ rtems_termios_ioctl (void *arg) */ void rtems_termios_puts ( - const void *_buf, int len, struct rtems_termios_tty *tty) + const void *_buf, size_t len, struct rtems_termios_tty *tty) { const unsigned char *buf = _buf; unsigned int newHead;