summary refs log tree commit diff
path: root/posix/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 14b11b16c0..e9754e1208 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -513,8 +513,8 @@ extern char *ttyname __P ((int __fd));
 #ifdef __USE_REENTRANT
 /* Store at most BUFLEN characters of the pathname of the terminal FD is
    open on in BUF.  Return 0 on success, -1 otherwise.  */
-extern int __ttyname_r __P ((int __fd, char *__buf, int __buflen));
-extern int ttyname_r __P ((int __fd, char *__buf, int __buflen));
+extern int __ttyname_r __P ((int __fd, char *__buf, size_t __buflen));
+extern int ttyname_r __P ((int __fd, char *__buf, size_t __buflen));
 #endif
 
 /* Return 1 if FD is a valid descriptor associated