From 594f1fbbb1c6aa64368c01d92ab5d7533e4e9cfa Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Sun, 2 Dec 2007 23:48:12 +0100 Subject: alpm_list : change the alpm_list_find* to return the matching item. alpm_list_find and alpm_list_find_ptr will now return a void *, and alpm_list_find_str will return a char *, instead of an int. Signed-off-by: Chantry Xavier Signed-off-by: Dan McGee --- lib/libalpm/alpm_list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/alpm_list.h') diff --git a/lib/libalpm/alpm_list.h b/lib/libalpm/alpm_list.h index 262d5e22..39cbdd30 100644 --- a/lib/libalpm/alpm_list.h +++ b/lib/libalpm/alpm_list.h @@ -73,9 +73,9 @@ void *alpm_list_getdata(const alpm_list_t *entry); /* misc */ int alpm_list_count(const alpm_list_t *list); -int alpm_list_find(const alpm_list_t *haystack, const void *needle, alpm_list_fn_cmp fn); -int alpm_list_find_ptr(const alpm_list_t *haystack, const void *needle); -int alpm_list_find_str(const alpm_list_t *haystack, const char *needle); +void *alpm_list_find(const alpm_list_t *haystack, const void *needle, alpm_list_fn_cmp fn); +void *alpm_list_find_ptr(const alpm_list_t *haystack, const void *needle); +char *alpm_list_find_str(const alpm_list_t *haystack, const char *needle); alpm_list_t *alpm_list_diff(const alpm_list_t *lhs, const alpm_list_t *rhs, alpm_list_fn_cmp fn); #ifdef __cplusplus -- cgit v1.2.3-24-g4f1b