Diff for /src/usr.sbin/ypserv/yp_access.c between versions 1.3 and 1.4

version 1.3, 2004/01/08 18:39:19 version 1.4, 2004/03/31 23:20:22
Line 87  char *yp_procs[] = { "ypoldproc_null", Line 87  char *yp_procs[] = { "ypoldproc_null",
   
   
 #ifdef TCP_WRAPPER  #ifdef TCP_WRAPPER
void load_securenets()void
 load_securenets(void)
 {  {
 }  }
 #else  #else
Line 106  struct securenet *securenets; Line 107  struct securenet *securenets;
  * list. If the file doesn't exist, we set up a dummy entry that   * list. If the file doesn't exist, we set up a dummy entry that
  * allows all hosts to connect.   * allows all hosts to connect.
  */   */
void load_securenets()void
 load_securenets(void)
 {  {
         FILE *fp;          FILE *fp;
         char path[MAXPATHLEN + 2];          char path[MAXPATHLEN + 2];
Line 208  void load_securenets() Line 210  void load_securenets()
  */   */
   
 #ifdef DB_CACHE  #ifdef DB_CACHE
int yp_access(map, domain, rqstp)int
 yp_access(const char *map, const char *domain, const struct svc_req *rqstp)
 #else  #else
int yp_access(map, rqstp)int
 yp_access(const char *map, const struct svc_req *rqstp)
 #endif  #endif
         const char *map;  
 #ifdef DB_CACHE  
         const char *domain;  
 #endif  
         const struct svc_req *rqstp;  
 {  {
         struct sockaddr_in *rqhost;          struct sockaddr_in *rqhost;
         int status = 0;          int status = 0;
Line 301  not privileged", map, inet_ntoa(rqhost-> Line 300  not privileged", map, inet_ntoa(rqhost->
   
 }  }
   
int yp_validdomain(domain)int
        const char *domain;yp_validdomain(const char *domain)
 {  {
         struct stat statbuf;          struct stat statbuf;
         char dompath[MAXPATHLEN + 2];          char dompath[MAXPATHLEN + 2];

Removed from v.1.3  
changed lines
  Added in v.1.4