/* return the methods for this mangling implementation */ const struct mangle_fns *mangle_hash2_init(void) { /* the mangle prefix can only be in the mange 1 to 6 */ mangle_prefix = lp_mangle_prefix(); if (mangle_prefix > 6) { mangle_prefix = 6; } if (mangle_prefix < 1) { mangle_prefix = 1; } #if DYNAMIC_MANGLE_TABLES init_tables(); #endif mangle_reset(); return &mangle_hash2_fns; }
/* return the methods for this mangling implementation */ struct mangle_fns *mangle_hash2_init(void) { /* the mangle prefix can only be in the mange 1 to 6 */ mangle_prefix = lp_mangle_prefix(); if (mangle_prefix > 6) { mangle_prefix = 6; } if (mangle_prefix < 1) { mangle_prefix = 1; } init_tables(); mangle_reset(); if (!cache_init()) { return NULL; } return &mangle_fns; }