summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/namecache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-24 17:27:54 +0100
committerVolker Lendecke <vl@sernet.de>2007-12-05 14:39:07 +0100
commit78c6ee0090f4122bc25baaacb5546517ad4b7bc6 (patch)
tree7b45cf85ff927e70552782b65bd73e50a637195f /source3/libsmb/namecache.c
parent66af0700396a5a5245aa25c95d70a620025b29c9 (diff)
downloadsamba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.tar.gz
samba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.tar.xz
samba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.zip
Remove some globals
(This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
Diffstat (limited to 'source3/libsmb/namecache.c')
-rw-r--r--source3/libsmb/namecache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c
index 6a675d2ef2c..ba706e5ee26 100644
--- a/source3/libsmb/namecache.c
+++ b/source3/libsmb/namecache.c
@@ -98,7 +98,7 @@ static char* namecache_key(const char *name,
int name_type)
{
char *keystr;
- asprintf(&keystr, NBTKEY_FMT, strupper_static(name), name_type);
+ asprintf_strupper_m(&keystr, NBTKEY_FMT, name, name_type);
return keystr;
}
@@ -318,8 +318,8 @@ static char *namecache_status_record_key(const char *name,
char *keystr;
print_sockaddr(addr, sizeof(addr), keyip);
- asprintf(&keystr, "NBT/%s#%02X.%02X.%s",
- strupper_static(name), name_type1, name_type2, addr);
+ asprintf_strupper_m(&keystr, "NBT/%s#%02X.%02X.%s", name,
+ name_type1, name_type2, addr);
return keystr;
}