Print this page
1575 untangle libmlrpc ... pre1:
 Move srvsvc_timecheck where it belongs


  94 
  95 /*ARGSUSED*/
  96 static void *
  97 mlsvc_timecheck(void *arg)
  98 {
  99         smb_domainex_t di;
 100 
 101         for (;;) {
 102                 (void) sleep(MLSVC_TIMECHECK_INTERVAL);
 103 
 104                 if (smb_config_get_secmode() != SMB_SECMODE_DOMAIN)
 105                         continue;
 106 
 107                 /* Avoid interfering with DC discovery. */
 108                 if (smb_ddiscover_wait() != 0)
 109                         continue;
 110 
 111                 if (!smb_domain_getinfo(&di))
 112                         continue;
 113 
 114                 ndr_srvsvc_timecheck(di.d_dci.dc_name,
 115                     di.d_primary.di_nbname);
 116         }
 117 
 118         /*NOTREACHED*/
 119         return (NULL);
 120 }


  94 
  95 /*ARGSUSED*/
  96 static void *
  97 mlsvc_timecheck(void *arg)
  98 {
  99         smb_domainex_t di;
 100 
 101         for (;;) {
 102                 (void) sleep(MLSVC_TIMECHECK_INTERVAL);
 103 
 104                 if (smb_config_get_secmode() != SMB_SECMODE_DOMAIN)
 105                         continue;
 106 
 107                 /* Avoid interfering with DC discovery. */
 108                 if (smb_ddiscover_wait() != 0)
 109                         continue;
 110 
 111                 if (!smb_domain_getinfo(&di))
 112                         continue;
 113 
 114                 srvsvc_timecheck(di.d_dci.dc_name,
 115                     di.d_primary.di_nbname);
 116         }
 117 
 118         /*NOTREACHED*/
 119         return (NULL);
 120 }