From: Chuck Lever Date: Sun, 17 Jan 2010 21:53:02 +0000 (-0500) Subject: tcpwrapper: Eliminated shadowed declaration warnings X-Git-Tag: nfs-utils-1-2-2-rc8~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=7d81b45faeb9ca652f4076cfecd0da742caa22a8;hp=7d81b45faeb9ca652f4076cfecd0da742caa22a8 tcpwrapper: Eliminated shadowed declaration warnings Clean up: the use of identifiers called "access" and "daemon" shadow function declarations in unistd.h. Seen with "-Wextra -pedantic". tcpwrapper.c: In function haccess_add: tcpwrapper.c:112: warning: declaration of access shadows a global declaration /usr/include/unistd.h:288: warning: shadowed declaration is here tcpwrapper.c: In function good_client: tcpwrapper.c:161: warning: declaration of daemon shadows a global declaration /usr/include/unistd.h:953: warning: shadowed declaration is here tcpwrapper.c: In function check_default: tcpwrapper.c:212: warning: declaration of daemon shadows a global declaration /usr/include/unistd.h:953: warning: shadowed declaration is here good_client() is used only in support/misc/tcpwrapper.c, so make it static (and update its prototype to c99 standard form). Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---