[BACK]Return to res_init.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / resolv

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/resolv/res_init.c between version 1.21 and 1.22

version 1.21, 2009/10/24 05:35:37 version 1.22, 2009/10/24 17:24:01
Line 562  __res_vinit(res_state statp, int preinit
Line 562  __res_vinit(res_state statp, int preinit
         return (statp->res_h_errno);          return (statp->res_h_errno);
 }  }
   
 void  int
 __res_check(res_state statp)  res_check(res_state statp, struct timespec *mtime)
 {  {
         /*          /*
          * If the times are equal, then we check if there           * If the times are equal, then we check if there
Line 576  __res_check(res_state statp)
Line 576  __res_check(res_state statp)
             &__res_conf_time, ==)) {              &__res_conf_time, ==)) {
                 struct kevent ke;                  struct kevent ke;
                 if (statp->_u._ext.ext->kq == -1)                  if (statp->_u._ext.ext->kq == -1)
                         return;                          goto out;
   
                 switch (kevent(statp->_u._ext.ext->kq, NULL, 0, &ke, 1, &ts)) {                  switch (kevent(statp->_u._ext.ext->kq, NULL, 0, &ke, 1, &ts)) {
                 case 0:                  case 0:
                 case -1:                  case -1:
                         return;  out:
                           if (mtime)
                                   *mtime = __res_conf_time;
                           return 0;
                 default:                  default:
                         break;                          break;
                 }                  }
         }          }
         (void)__res_vinit(statp, 0);          (void)__res_vinit(statp, 0);
           if (mtime)
                   *mtime = __res_conf_time;
           return 1;
 }  }
   
 static void  static void

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

CVSweb <webmaster@jp.NetBSD.org>