diff options
author | George Burgess IV <gbiv@chromium.org> | 2016-09-09 23:43:19 -0700 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-09-11 12:46:02 +0100 |
commit | e0953783024a113b186547aca186777f9ce3b798 (patch) | |
tree | 89e12f2dc9d0df753dda7c30a26d84adc51130e2 /src/pinky.c | |
parent | 677ae07083f41754fc9d3c7a0559248063908e30 (diff) | |
download | coreutils-e0953783024a113b186547aca186777f9ce3b798.tar.xz |
pinky,who: remove redeclarations of ttyname
Given that `ttyname` is already conditionally declared in src/system.h,
other declarations are redundant and problematic for example in ChromeOS
which has a new FORTIFY implementation that, as an artifact of how it's
implemented, causes the compiler to complain if certain standard library
functions are redeclared without special compiler-specific attributes.
* src/pinky.c: Remove declaration (which was unused anyway).
* src/who.c: Remove declaration.
* src/system.h (getlogin, getuid, geteuid, getgrgid, getpwuid, ttyname):
Add the parameter type to the declarations to avoid warnings when these
backup declarations are used.
Diffstat (limited to 'src/pinky.c')
-rw-r--r-- | src/pinky.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pinky.c b/src/pinky.c index 68566fdc2..76856090a 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -37,8 +37,6 @@ proper_name ("David MacKenzie"), \ proper_name ("Kaveh Ghazi") -char *ttyname (int); - /* If true, display the hours:minutes since each user has touched the keyboard, or blank if within the last minute, or days followed by a 'd' if not within the last day. */ |