aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-28 14:49:06 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:51 +0100
commita8e69108c1be5ad74f65b504636336f4940e0085 (patch)
treedd32161308e3db9240c8856d2dd05933f9cfe0ec /src
parent123da4404c1766c58ed9c34122e8e8b3d75e8614 (diff)
Make argument of num_items() const
Diffstat (limited to 'src')
-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);