aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/container.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h
index 305dc0ea0..e4364109d 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -260,6 +260,10 @@ void* strmap_remove_lc(strmap_t *map, const char *key);
{ \
return (maptype*)digestmap_new(); \
} \
+ static INLINE digestmap_t* prefix##to_digestmap(maptype *map) \
+ { \
+ return (digestmap_t*)map; \
+ } \
static INLINE valtype* prefix##get(maptype *map, const char *key) \
{ \
return (valtype*)digestmap_get((digestmap_t*)map, key); \