Remove a few more usages of global_loadparm.
[ira/wip.git] / source4 / ntvfs / posix / pvfs_util.c
index 720ddaaa7bf09a4fd00c1b123bd13a47a063293b..2aea15fbd1d281f9bd937c1bb78c8ba52ad9b89b 100644 (file)
@@ -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;