Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/list.c')
-rw-r--r--lib/libalpm/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/list.c b/lib/libalpm/list.c
index f06102f5..e1113f5c 100644
--- a/lib/libalpm/list.c
+++ b/lib/libalpm/list.c
@@ -208,16 +208,16 @@ int pm_list_is_in(void *needle, PMList *haystack)
/* Test for existence of a string in a PMList
*/
-PMList *pm_list_is_strin(char *needle, PMList *haystack)
+int pm_list_is_strin(char *needle, PMList *haystack)
{
PMList *lp;
for(lp = haystack; lp; lp = lp->next) {
if(lp->data && !strcmp(lp->data, needle)) {
- return(lp);
+ return(1);
}
}
- return(NULL);
+ return(0);
}
PMList *_alpm_list_last(PMList *list)