about summary refs log tree commit diff
path: root/sysdeps/stub/ttyname_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/ttyname_r.c')
-rw-r--r--sysdeps/stub/ttyname_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/stub/ttyname_r.c b/sysdeps/stub/ttyname_r.c
index 813fd03809..6599d60b8b 100644
--- a/sysdeps/stub/ttyname_r.c
+++ b/sysdeps/stub/ttyname_r.c
@@ -21,7 +21,7 @@
 
 
 /* Store at most BUFLEN characters the pathname of the terminal FD is
-   open on in BUF.  Return 0 on success, -1 otherwise.  */
+   open on in BUF.  Return 0 on success,  otherwise an error number.  */
 int
 ttyname_r (fd, buf, buflen)
      int fd;
@@ -29,7 +29,7 @@ ttyname_r (fd, buf, buflen)
      size_t buflen;
 {
   __set_errno (ENOSYS);
-  return -1;
+  return ENOSYS;
 }