chiark / gitweb /
Make list_length and string_item_to_ipaddr const-correct.
[secnet.git] / secnet.h
index 34f24fe5047e8aafcd54bdad0ef4467d9c4edb2e..56872ed00e6c6eaf437b8af98aef2ad619591d1b 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -114,7 +114,7 @@ extern cstring_t *dict_keys(dict_t *dict);
 
 /* List-manipulation functions */
 extern list_t *list_new(void);
-extern int32_t list_length(list_t *a);
+extern int32_t list_length(const list_t *a);
 extern list_t *list_append(list_t *a, item_t *i);
 extern list_t *list_append_list(list_t *a, list_t *b);
 /* Returns an item from the list (index starts at 0), or NULL */