mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
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.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2008-12-02 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* libmisc/shell/main_cp.c, libmisc/shell/main_ls.c,
|
* libmisc/shell/main_cp.c, libmisc/shell/main_ls.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
|
* ttyname_r() - POSIX 1003.1b 4.7.2 - Demetermine Terminal Device Name
|
||||||
*/
|
*/
|
||||||
int ttyname_r(
|
int ttyname_r(
|
||||||
int fd,
|
int fd,
|
||||||
char *name,
|
char *name,
|
||||||
int namesize
|
size_t namesize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
|
|||||||
Reference in New Issue
Block a user