From 58a7e85534f260a49a324dd5b3f408ce1e21cd18 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 16 Feb 2006 21:02:39 +0000 Subject: - db_write: add support to write both local and sync entries - code cleanup --- lib/libalpm/list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/list.c') 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) -- cgit v1.2.3-24-g4f1b