diff options
Diffstat (limited to 'lib/libalpm/list.c')
-rw-r--r-- | lib/libalpm/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/list.c b/lib/libalpm/list.c index 0f48030b..47c31990 100644 --- a/lib/libalpm/list.c +++ b/lib/libalpm/list.c @@ -187,10 +187,10 @@ pmlist_t *_alpm_list_remove(pmlist_t *haystack, void *needle, _alpm_fn_cmp fn, v return(haystack); } -int _alpm_list_count(pmlist_t *list) +int _alpm_list_count(const pmlist_t *list) { int i; - pmlist_t *lp; + const pmlist_t *lp; for(lp = list, i = 0; lp; lp = lp->next, i++); |