summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-22 10:19:14 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-27 15:28:06 +0100
commit7d93d3d4b8db230ceb51a81f18650b8114528f1f (patch)
treec99a014c620bec2b18e925329fcbff56688973ae
parent920f8b15685eb3f378c6ba5865a57e5f4d36e042 (diff)
downloadsamba-7d93d3d4b8db230ceb51a81f18650b8114528f1f.tar.gz
samba-7d93d3d4b8db230ceb51a81f18650b8114528f1f.tar.bz2
samba-7d93d3d4b8db230ceb51a81f18650b8114528f1f.zip
s3:namecache: remove unused namecache_shutdown() function
metze
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/libsmb/namecache.c21
-rw-r--r--source3/smbd/server.c2
3 files changed, 0 insertions, 24 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 8838419705..c02a41a678 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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,
diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c
index ba706e5ee2..d3230cffef 100644
--- a/source3/libsmb/namecache.c
+++ b/source3/libsmb/namecache.c
@@ -62,27 +62,6 @@ bool namecache_enable(void)
}
/**
- * 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.
* The caller must free returned key string when finished.
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 505763014e..65fb0a84d1 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1476,8 +1476,6 @@ extern void build_options(bool screen);
smbd_process();
- namecache_shutdown();
-
exit_server_cleanly(NULL);
return(0);
}