diff options
Diffstat (limited to 'core/table.h')
-rw-r--r-- | core/table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/table.h b/core/table.h index 76074fe47..1abfa6be3 100644 --- a/core/table.h +++ b/core/table.h @@ -83,11 +83,12 @@ } #define MAKE_REMOVE(table_type, item_type, item_name) \ - void remove_##item_name(const item_type item, struct table_type *table) \ + int remove_##item_name(const item_type item, struct table_type *table) \ { \ int idx = get_idx_in_##table_type(table, item); \ if (idx >= 0) \ remove_from_##table_type(table, idx); \ + return idx; \ } #endif |