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/utils | |
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/utils')
-rw-r--r-- | source3/utils/net_cache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/utils/net_cache.c b/source3/utils/net_cache.c index 5e7db38515..74d8d29b4b 100644 --- a/source3/utils/net_cache.c +++ b/source3/utils/net_cache.c @@ -171,12 +171,10 @@ static int net_cache_add(struct net_context *c, int argc, const char **argv) if (gencache_set(keystr, datastr, timeout)) { d_printf("New cache entry stored successfully.\n"); - gencache_shutdown(); return 0; } d_fprintf(stderr, "Entry couldn't be added. Perhaps there's already such a key.\n"); - gencache_shutdown(); return -1; } @@ -275,7 +273,6 @@ static int net_cache_list(struct net_context *c, int argc, const char **argv) return 0; } gencache_iterate(print_cache_entry, NULL, pattern); - gencache_shutdown(); return 0; } @@ -297,7 +294,6 @@ static int net_cache_flush(struct net_context *c, int argc, const char **argv) return 0; } gencache_iterate(delete_cache_entry, NULL, pattern); - gencache_shutdown(); return 0; } |