krb5 commit: Remove redeclaration of ttyname() in ksu

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/6ee24f97b98f9c045632b1ce0670a3eb508cb833
commit 6ee24f97b98f9c045632b1ce0670a3eb508cb833
Author: Zentaro Kavanagh <[email protected]>
Date:   Wed Nov 16 13:58:06 2016 -0800

    Remove redeclaration of ttyname() in ksu
    
    ttyname() is declared in unistd.h.  Redeclaring it causes an
    issue building with clang fortify on Chrome OS.
    
    ticket: 8518 (new)

 src/clients/ksu/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c
index 28342c2..7ff676c 100644
--- a/src/clients/ksu/main.c
+++ b/src/clients/ksu/main.c
@@ -932,7 +932,7 @@ int standard_shell(sh)
 
 static char * ontty()
 {
-    char *p, *ttyname();
+    char *p;
     static char buf[MAXPATHLEN + 5];
     int result;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.