summaryrefslogtreecommitdiff
path: root/strmap.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:15:17 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:15:17 -0800
commite0f58c9b3e5372f62ff97f66dc240da5b503e2b1 (patch)
tree3542b4ff3e143251325d7c8cefdc88b7ce67769d /strmap.h
parentMerge branch 'jc/compat-util-setitimer-fix' (diff)
parentstrmap: make callers of strmap_remove() to call it in void context (diff)
downloadtgif-e0f58c9b3e5372f62ff97f66dc240da5b503e2b1.tar.xz
Merge branch 'jc/strmap-remove-typefix'
C-std compliance fix. * jc/strmap-remove-typefix: strmap: make callers of strmap_remove() to call it in void context
Diffstat (limited to 'strmap.h')
-rw-r--r--strmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/strmap.h b/strmap.h
index c4c104411b..1e152d832d 100644
--- a/strmap.h
+++ b/strmap.h
@@ -165,7 +165,7 @@ static inline int strintmap_contains(struct strintmap *map, const char *str)
static inline void strintmap_remove(struct strintmap *map, const char *str)
{
- return strmap_remove(&map->map, str, 0);
+ strmap_remove(&map->map, str, 0);
}
static inline int strintmap_empty(struct strintmap *map)
@@ -249,7 +249,7 @@ static inline int strset_contains(struct strset *set, const char *str)
static inline void strset_remove(struct strset *set, const char *str)
{
- return strmap_remove(&set->map, str, 0);
+ strmap_remove(&set->map, str, 0);
}
static inline int strset_empty(struct strset *set)