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>2005-04-20 19:41:22 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-20 19:41:22 +0000
commit170dd807f574644ee4bee31a85891e553e578ae1 (patch)
tree7eb525cc1309ea16ab928d81b501e1fd02990cd9 /lib/libalpm/list.c
parent77520f9d43ff94fc491b37f14922bb27408080e3 (diff)
- fixed args order in list_is_ptrin()
Diffstat (limited to 'lib/libalpm/list.c')
-rw-r--r--lib/libalpm/list.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libalpm/list.c b/lib/libalpm/list.c
index 5a24f023..b55a3900 100644
--- a/lib/libalpm/list.c
+++ b/lib/libalpm/list.c
@@ -217,7 +217,7 @@ int pm_list_count(PMList *list)
return(i);
}
-int pm_list_is_ptrin(PMList *haystack, void *needle)
+int pm_list_is_ptrin(void *needle, PMList *haystack)
{
PMList *lp;
@@ -272,4 +272,16 @@ PMList* _alpm_list_reverse(PMList *list)
return(newlist);
}
+PMList *_alpm_list_strdup(PMList *list)
+{
+ PMList *newlist = NULL;
+ PMList *lp;
+
+ for(lp = list; lp; lp = lp->next) {
+ newlist = pm_list_add(newlist, strdup(lp->data));
+ }
+
+ return(newlist);
+}
+
/* vim: set ts=2 sw=2 noet: */