]> git.decadent.org.uk Git - nfs-utils.git/commit
tcpwrapper: Eliminated shadowed declaration warnings
authorChuck Lever <chuck.lever@oracle.com>
Sun, 17 Jan 2010 21:53:02 +0000 (16:53 -0500)
committerSteve Dickson <steved@redhat.com>
Sun, 17 Jan 2010 21:53:02 +0000 (16:53 -0500)
commit7d81b45faeb9ca652f4076cfecd0da742caa22a8
tree9d3bfdaf8c45638b101f50de2a08e71cbf328829
parent90c944c9cc1fde845caa29b98c2864eb32660403
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/tcpwrapper.h
support/misc/tcpwrapper.c