summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_util.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-24 13:22:12 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-24 13:22:12 +0200
commit284f523ec70477c408887a478e8392671f12dfff (patch)
tree9945e37707ac8206c18da4653102c4993d6da65f /source4/ntvfs/posix/pvfs_util.c
parent8b06312f7eeff5ea8625677478792888774bd2be (diff)
downloadsamba-284f523ec70477c408887a478e8392671f12dfff.tar.gz
samba-284f523ec70477c408887a478e8392671f12dfff.tar.bz2
samba-284f523ec70477c408887a478e8392671f12dfff.zip
Remove a few more usages of global_loadparm.
Diffstat (limited to 'source4/ntvfs/posix/pvfs_util.c')
-rw-r--r--source4/ntvfs/posix/pvfs_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_util.c b/source4/ntvfs/posix/pvfs_util.c
index 720ddaaa7b..2aea15fbd1 100644
--- a/source4/ntvfs/posix/pvfs_util.c
+++ b/source4/ntvfs/posix/pvfs_util.c
@@ -179,10 +179,11 @@ uint32_t pvfs_name_hash(const char *key, size_t length)
const uint32_t fnv1_prime = 0x01000193;
const uint32_t fnv1_init = 0xa6b93095;
uint32_t value = fnv1_init;
+ struct smb_iconv_convenience *iconv_convenience = lp_iconv_convenience(global_loadparm);
while (*key && length--) {
size_t c_size;
- codepoint_t c = next_codepoint(lp_iconv_convenience(global_loadparm), key, &c_size);
+ codepoint_t c = next_codepoint(iconv_convenience, key, &c_size);
c = toupper_m(c);
value *= fnv1_prime;
value ^= (uint32_t)c;