From: Zentaro Kavanagh Date: Wed, 16 Nov 2016 21:58:06 +0000 (-0800) Subject: Remove redeclaration of ttyname() in ksu X-Git-Tag: krb5-1.16-beta1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee24f97b98f9c045632b1ce0670a3eb508cb833;p=thirdparty%2Fkrb5.git 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) --- diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 28342c2d77..7ff676ca72 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;