diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-02 18:51:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-02 18:51:09 +0000 |
commit | 15d26f98e6953d43eae6ffae68ca1e7ef8fb1870 (patch) | |
tree | 6b090b6514ce54b49728aeb3940d5388243e8c41 /cpukit | |
parent | 2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-15d26f98e6953d43eae6ffae68ca1e7ef8fb1870.tar.bz2 |
2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/ttyname.c: Correct prototype of ttyname_r() to use
size_t for third parameter.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/ttyname.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 77a544c9a0..af023f4d87 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com> + * libcsupport/src/ttyname.c: Correct prototype of ttyname_r() to use + size_t for third parameter. + +2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com> + * libmisc/shell/main_cp.c, libmisc/shell/main_ls.c, libmisc/shell/main_mv.c, libmisc/shell/main_netstats.c, libmisc/shell/main_rm.c, libmisc/shell/shell_script.c: Add #define diff --git a/cpukit/libcsupport/src/ttyname.c b/cpukit/libcsupport/src/ttyname.c index d483349235..59ea29be6e 100644 --- a/cpukit/libcsupport/src/ttyname.c +++ b/cpukit/libcsupport/src/ttyname.c @@ -59,9 +59,9 @@ static char ttyname_buf[sizeof (_PATH_DEV) + MAXNAMLEN] = _PATH_DEV; * ttyname_r() - POSIX 1003.1b 4.7.2 - Demetermine Terminal Device Name */ int ttyname_r( - int fd, - char *name, - int namesize + int fd, + char *name, + size_t namesize ) { struct stat sb; |