c6d234
Introduce prototype-style function definition for getttynam.  Upstream,
c6d234
this was part of:
c6d234
c6d234
commit abccad04b4172d552dbdae948c0e567ba266ad76
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Wed Jun 17 20:21:19 2015 +0000
c6d234
c6d234
    Fix ttyslot namespace (bug 18547).
c6d234
c6d234
diff --git a/misc/getttyent.c b/misc/getttyent.c
c6d234
index 864f65f523de2522..018789a801b8b764 100644
c6d234
--- a/misc/getttyent.c
c6d234
+++ b/misc/getttyent.c
c6d234
@@ -44,8 +44,7 @@ static char zapchar;
c6d234
 static FILE *tf;
c6d234
 
c6d234
 struct ttyent *
c6d234
-getttynam(tty)
c6d234
-	const char *tty;
c6d234
+getttynam (const char *tty)
c6d234
 {
c6d234
 	struct ttyent *t;
c6d234