diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2007-11-14 12:42:15 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-15 01:48:34 +0100 |
commit | 85b06f127600131e11afb3629e2609334dee00df (patch) | |
tree | e99ca85fa287d45a1b5c9822a5d100087c859ebc /lib/libalpm/alpm_list.c | |
parent | 46ec9e3548b5b567c7eb18c360f54a77b6313b12 (diff) | |
download | pacman-85b06f127600131e11afb3629e2609334dee00df.tar.gz pacman-85b06f127600131e11afb3629e2609334dee00df.tar.xz |
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 <ngaba@bibl.u-szeged.hu>
[Dan: punctuation cleanup in commit message and code comments, added comment
to alpm_list_add]
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm_list.c')
-rw-r--r-- | lib/libalpm/alpm_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |