From 7d81b45faeb9ca652f4076cfecd0da742caa22a8 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sun, 17 Jan 2010 16:53:02 -0500 Subject: 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 --- support/include/tcpwrapper.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'support/include/tcpwrapper.h') 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 #include -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 */ -- cgit