| 482 | } |
| 483 | |
| 484 | static gen_hash_t *config_new_cache(void) |
| 485 | { |
| 486 | gen_hash_t *new = hash_init_flags(config_hash_size, |
| 487 | (config_rpm_enable?HASH_MAP_PERSIST:HASH_MAP_SHARED)); |
| 488 | if (!new) { |
| 489 | LM_ERR("could not add new cache\n"); |
| 490 | return NULL; |
| 491 | } |
| 492 | return new; |
| 493 | } |
| 494 | |
| 495 | static int config_push_val(gen_hash_t *hash, str *name, str *val, str *desc, int update) |
| 496 | { |
no test coverage detected