summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-01-17 16:53:02 -0500
committerSteve Dickson <steved@redhat.com>2010-01-17 16:53:02 -0500
commit7d81b45faeb9ca652f4076cfecd0da742caa22a8 (patch)
tree9d3bfdaf8c45638b101f50de2a08e71cbf328829 /support/include
parent90c944c9cc1fde845caa29b98c2864eb32660403 (diff)
downloadnfs-utils-7d81b45faeb9ca652f4076cfecd0da742caa22a8.tar.gz
nfs-utils-7d81b45faeb9ca652f4076cfecd0da742caa22a8.tar.xz
nfs-utils-7d81b45faeb9ca652f4076cfecd0da742caa22a8.zip
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>
Diffstat (limited to 'support/include')
-rw-r--r--support/include/tcpwrapper.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/support/include/tcpwrapper.h b/support/include/tcpwrapper.h
index 941394e..930ec6a 100644
--- a/support/include/tcpwrapper.h
+++ b/support/include/tcpwrapper.h
@@ -5,8 +5,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-extern int good_client(char *daemon, struct sockaddr_in *addr);
extern int from_local(const struct sockaddr *sap);
-extern int check_default(char *daemon, struct sockaddr_in *addr, u_long prog);
+extern int check_default(char *name, struct sockaddr_in *addr, u_long prog);
#endif /* TCP_WRAPPER_H */