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:
authorAurelien Foret <aurelien@archlinux.org>2006-02-16 21:02:39 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-16 21:02:39 +0000
commit58a7e85534f260a49a324dd5b3f408ce1e21cd18 (patch)
treef0b60c1c8a26a58400522ceee54fb908866a64a0 /lib/libalpm/list.c
parentdc0bacf18cfe2481516778905051879bd008f517 (diff)
- db_write: add support to write both local and sync entries
- code cleanup
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)