diff options
author | 2004-05-18 02:05:52 +0000 | |
---|---|---|
committer | 2004-05-18 02:05:52 +0000 | |
commit | 73b3e3c43784cb5fd04439d34c7436bbf85871db (patch) | |
tree | 71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/ttyname.c | |
parent | sync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff) | |
download | wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip |
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/ttyname.c')
-rw-r--r-- | lib/libc/gen/ttyname.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/gen/ttyname.c b/lib/libc/gen/ttyname.c index 4f88c2e0ea0..87492e24597 100644 --- a/lib/libc/gen/ttyname.c +++ b/lib/libc/gen/ttyname.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ttyname.c,v 1.9 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: ttyname.c,v 1.10 2004/05/18 02:05:52 jfb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -79,10 +79,7 @@ ttyname(int fd) } static int -__ttyname_r_basic(fd, buf, len) - int fd; - char *buf; - size_t len; +__ttyname_r_basic(int fd, char *buf, size_t len) { struct stat sb; struct termios ttyb; @@ -129,11 +126,7 @@ __ttyname_r_basic(fd, buf, len) /* ARGSUSED */ static int -oldttyname(fd, sb, buf, len) - int fd; - struct stat *sb; - char *buf; - size_t len; +oldttyname(int fd, struct stat *sb, char *buf, size_t len) { register struct dirent *dirp; register DIR *dp; |