aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils.c2
-rw-r--r--src/utils.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index de820cf3..9348dc00 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -353,7 +353,7 @@ struct refl_item *get_item(ReflItemList *items, int i)
return &items->items[i];
}
-int num_items(ReflItemList *items)
+int num_items(const ReflItemList *items)
{
return items->n_items;
}
diff --git a/src/utils.h b/src/utils.h
index 14ef45a7..ab07336d 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -194,7 +194,7 @@ extern void add_item(ReflItemList *items,
extern int find_item(ReflItemList *items,
signed int h, signed int k, signed int l);
extern struct refl_item *get_item(ReflItemList *items, int i);
-extern int num_items(ReflItemList *items);
+extern int num_items(const ReflItemList *items);
extern unsigned int *items_to_counts(ReflItemList *items);