diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-10 12:24:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-15 10:55:20 +0200 |
commit | 3edcd55bf140d09833284ba5a0f04f86b04ef7dc (patch) | |
tree | 4f608ee12dcd56f02143417bc816d318a16e12e4 /source3/lib | |
parent | d936d1bd84e130aaff1de64cb1ecbd1f936dd9c4 (diff) | |
download | samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.gz samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.bz2 samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.zip |
Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/gencache.c | 21 | ||||
-rw-r--r-- | source3/lib/netapi/netapi.c | 1 |
2 files changed, 1 insertions, 21 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index c94fb78541..06eb29345b 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -49,7 +49,7 @@ static struct tdb_context *cache; * false on failure **/ -bool gencache_init(void) +static bool gencache_init(void) { char* cache_fname = NULL; @@ -79,25 +79,6 @@ bool gencache_init(void) /** - * Cache shutdown function. Closes opened cache tdb file. - * - * @return true on successful closing the cache or - * false on failure during cache shutdown - **/ - -bool gencache_shutdown(void) -{ - int ret; - /* tdb_close routine returns -1 on error */ - if (!cache) return False; - DEBUG(5, ("Closing cache file\n")); - ret = tdb_close(cache); - cache = NULL; - return ret != -1; -} - - -/** * Set an entry in the cache file. If there's no such * one, then add it. * diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 2f8474b37f..e80879a1d2 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -170,7 +170,6 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx) gfree_charcnv(); gfree_interfaces(); - gencache_shutdown(); secrets_shutdown(); TALLOC_FREE(ctx); |