From 85b06f127600131e11afb3629e2609334dee00df Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Wed, 14 Nov 2007 12:42:15 +0100 Subject: alpm_list_add == alpm_list_add_last It's time to define that alpm_list_add(list, foo) adds 'foo' to the end of 'list' and returns with 'list', because: 1. list is a list, not a set. 2. sortbydeps _needs_ an alpm_list_add definition to work properly. As a first step, I used this definition in recursedeps. Signed-off-by: Nagy Gabor [Dan: punctuation cleanup in commit message and code comments, added comment to alpm_list_add] Signed-off-by: Dan McGee --- lib/libalpm/alpm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/alpm_list.c') diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 465c1a8f..774d1dbe 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -98,7 +98,7 @@ void SYMEXPORT alpm_list_free_inner(alpm_list_t *list, alpm_list_fn_free fn) /* Mutators */ /** - * @brief Add a new item to the list. + * @brief Add a new item to the end of the list. * * @param list the list to add to * @param data the new item to be added to the list -- cgit v1.2.3