diff options
Diffstat (limited to 'sysdeps/posix/ttyname.c')
-rw-r--r-- | sysdeps/posix/ttyname.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sysdeps/posix/ttyname.c b/sysdeps/posix/ttyname.c index e2f17ac394..23a250cd9b 100644 --- a/sysdeps/posix/ttyname.c +++ b/sysdeps/posix/ttyname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -35,12 +35,7 @@ libc_freeres_ptr (static char *getttyname_name); static char * internal_function -getttyname (fd, mydev, myino, save, dostat) - int fd; - dev_t mydev; - ino_t myino; - int save; - int *dostat; +getttyname (int fd, dev_t mydev, ino_t myino, int save, int *dostat) { static const char dev[] = "/dev"; static size_t namelen; @@ -101,8 +96,7 @@ getttyname (fd, mydev, myino, save, dostat) /* Return the pathname of the terminal FD is open on, or NULL on errors. The returned storage is good only until the next call to this function. */ char * -ttyname (fd) - int fd; +ttyname (int fd) { struct stat st; int dostat = 0; |