diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-24 13:47:35 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-12-24 15:24:35 +0100 |
commit | 53bf5f0064757ec6bad9cbe7bd8a0b34108fc4d7 (patch) | |
tree | a6c9a916ceda4c607fe2f5d7ed5efda8d3867c5b /source3 | |
parent | a3f43e3d86a1445ad775a151dbd9b08c06c7ded9 (diff) | |
download | samba-53bf5f0064757ec6bad9cbe7bd8a0b34108fc4d7.tar.gz samba-53bf5f0064757ec6bad9cbe7bd8a0b34108fc4d7.tar.bz2 samba-53bf5f0064757ec6bad9cbe7bd8a0b34108fc4d7.zip |
s3: Remove some unnecessary variables from libsmb/conn_cache.c
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/conncache.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c index b3086e9029..c4c53d0681 100644 --- a/source3/libsmb/conncache.c +++ b/source3/libsmb/conncache.c @@ -7,7 +7,8 @@ Copyright (C) Andrew Bartlett 2002 Copyright (C) Gerald (Jerry) Carter 2003 Copyright (C) Marc VanHeyningen 2008 - + Copyright (C) Volker Lendecke 2009 + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or @@ -37,11 +38,6 @@ /** - * prefix used for all entries put into the general cache - */ -static const char NEGATIVE_CONN_CACHE_PREFIX[] = "NEG_CONN_CACHE"; - -/** * Marshalls the domain and server name into the key for the gencache * record * @@ -53,7 +49,6 @@ static const char NEGATIVE_CONN_CACHE_PREFIX[] = "NEG_CONN_CACHE"; */ static char *negative_conn_cache_keystr(const char *domain, const char *server) { - const char NEGATIVE_CONN_CACHE_KEY_FMT[] = "%s/%s,%s"; char *keystr = NULL; if (domain == NULL) { @@ -62,8 +57,8 @@ static char *negative_conn_cache_keystr(const char *domain, const char *server) if (server == NULL) server = ""; - keystr = talloc_asprintf(talloc_tos(),NEGATIVE_CONN_CACHE_KEY_FMT, - NEGATIVE_CONN_CACHE_PREFIX, domain, server); + keystr = talloc_asprintf(talloc_tos(), "NEG_CONN_CACHE/%s,%s", + domain, server); if (keystr == NULL) { DEBUG(0, ("negative_conn_cache_keystr: malloc error\n")); } |