diff options
author | Gerald Carter <jerry@samba.org> | 2004-02-10 03:51:30 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-02-10 03:51:30 +0000 |
commit | ffce0e466642134bd4556a91310761630400ed03 (patch) | |
tree | 06c8f74e432c9664105e788a55c03c5c56b37f71 /source3 | |
parent | 1eaa54092b135aeef619a4ce998f733ea796dd47 (diff) | |
download | samba-ffce0e466642134bd4556a91310761630400ed03.tar.gz samba-ffce0e466642134bd4556a91310761630400ed03.tar.bz2 samba-ffce0e466642134bd4556a91310761630400ed03.zip |
fix more compiler warning after the latest static rampage
(This used to be commit 98d9278c81ede2a931a2c2c8371c0499601a1457)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_util.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index eecb36a30f..403ba399c8 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -169,34 +169,6 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const } /******************************************************************** - Periodically we need to refresh the trusted domain cache for smbd -********************************************************************/ - -void rescan_trusted_domains( void ) -{ - time_t now = time(NULL); - struct winbindd_domain *mydomain = NULL; - - /* see if the time has come... */ - - if ( (now > last_trustdom_scan) && ((now-last_trustdom_scan) < WINBINDD_RESCAN_FREQ) ) - return; - - if ( (mydomain = find_our_domain()) == NULL ) { - DEBUG(0,("rescan_trusted_domains: Can't find my own domain!\n")); - return; - } - - /* this will only add new domains we didn't already know about */ - - add_trusted_domains( mydomain ); - - last_trustdom_scan = now; - - return; -} - -/******************************************************************** rescan our domains looking for new trusted domains ********************************************************************/ @@ -271,6 +243,34 @@ static void add_trusted_domains( struct winbindd_domain *domain ) talloc_destroy(mem_ctx); } +/******************************************************************** + Periodically we need to refresh the trusted domain cache for smbd +********************************************************************/ + +void rescan_trusted_domains( void ) +{ + time_t now = time(NULL); + struct winbindd_domain *mydomain = NULL; + + /* see if the time has come... */ + + if ( (now > last_trustdom_scan) && ((now-last_trustdom_scan) < WINBINDD_RESCAN_FREQ) ) + return; + + if ( (mydomain = find_our_domain()) == NULL ) { + DEBUG(0,("rescan_trusted_domains: Can't find my own domain!\n")); + return; + } + + /* this will only add new domains we didn't already know about */ + + add_trusted_domains( mydomain ); + + last_trustdom_scan = now; + + return; +} + /* Look up global info for the winbind daemon */ BOOL init_domain_list(void) { |