mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:namecache: remove unused namecache_shutdown() function
metze
This commit is contained in:
parent
920f8b1568
commit
7d93d3d4b8
@ -2944,7 +2944,6 @@ NTSTATUS map_nt_error_from_gss(uint32 gss_maj, uint32 minor);
|
||||
/* The following definitions come from libsmb/namecache.c */
|
||||
|
||||
bool namecache_enable(void);
|
||||
bool namecache_shutdown(void);
|
||||
bool namecache_store(const char *name,
|
||||
int name_type,
|
||||
int num_names,
|
||||
|
@ -61,27 +61,6 @@ bool namecache_enable(void)
|
||||
return True;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shutdown namecache. Routine calls gencache close function
|
||||
* to safely close gencache file.
|
||||
*
|
||||
* @return true upon successful shutdown of the cache or
|
||||
* false on failure
|
||||
**/
|
||||
|
||||
bool namecache_shutdown(void)
|
||||
{
|
||||
if (!gencache_shutdown()) {
|
||||
DEBUG(2, ("namecache_shutdown: "
|
||||
"Couldn't close namecache on top of gencache.\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
DEBUG(5, ("namecache_shutdown: "
|
||||
"netbios namecache closed successfully.\n"));
|
||||
return True;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a key for netbios name lookups on basis of
|
||||
* netbios name and type.
|
||||
|
@ -1476,8 +1476,6 @@ extern void build_options(bool screen);
|
||||
|
||||
smbd_process();
|
||||
|
||||
namecache_shutdown();
|
||||
|
||||
exit_server_cleanly(NULL);
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user