]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove redeclaration of ttyname() in ksu 568/head
authorZentaro Kavanagh <zentaro@google.com>
Wed, 16 Nov 2016 21:58:06 +0000 (13:58 -0800)
committerGreg Hudson <ghudson@mit.edu>
Fri, 18 Nov 2016 18:31:29 +0000 (13:31 -0500)
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

index 28342c2d773616aa38fe342aff726b126074d4a9..7ff676ca728b3c4df468fcc998cb5bd3451afa0b 100644 (file)
@@ -932,7 +932,7 @@ int standard_shell(sh)
 
 static char * ontty()
 {
-    char *p, *ttyname();
+    char *p;
     static char buf[MAXPATHLEN + 5];
     int result;