diff options
Diffstat (limited to 'usr.sbin/ypserv/yp_access.c')
-rw-r--r-- | usr.sbin/ypserv/yp_access.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c index 610f209..d5e8f5a 100644 --- a/usr.sbin/ypserv/yp_access.c +++ b/usr.sbin/ypserv/yp_access.c @@ -90,7 +90,8 @@ char *yp_procs[] = { "ypoldproc_null", #ifdef TCP_WRAPPER -void load_securenets() +void +load_securenets(void) { } #else @@ -109,7 +110,8 @@ struct securenet *securenets; * list. If the file doesn't exist, we set up a dummy entry that * allows all hosts to connect. */ -void load_securenets() +void +load_securenets(void) { FILE *fp; char path[MAXPATHLEN + 2]; @@ -211,15 +213,12 @@ void load_securenets() */ #ifdef DB_CACHE -int yp_access(map, domain, rqstp) +int +yp_access(const char *map, const char *domain, const struct svc_req *rqstp) #else -int yp_access(map, rqstp) +int +yp_access(const char *map, const struct svc_req *rqstp) #endif - const char *map; -#ifdef DB_CACHE - const char *domain; -#endif - const struct svc_req *rqstp; { struct sockaddr_in *rqhost; int status = 0; @@ -304,8 +303,8 @@ not privileged", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); } -int yp_validdomain(domain) - const char *domain; +int +yp_validdomain(const char *domain) { struct stat statbuf; char dompath[MAXPATHLEN + 2]; |