summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-06 00:55:47 -0500
committerDan McGee <dan@archlinux.org>2011-10-12 14:22:49 -0500
commit6be492d2f71bf0968b836e17a0f59a0e32572b49 (patch)
tree06072365142251c61f10f5b441ff4bcdd1c2a0d7 /src/pacman/conf.c
parent1b7d2b0cfaaf7e2d376fa2542ed2d0442f3a0764 (diff)
Remove alpm_list_getdata wrapper function
This one is pretty darn useless. Just derefence the ->data attribute since the type is public anyway and save yourself the function call. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index fe2ebb3e..761c9a62 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -659,7 +659,7 @@ static int finish_section(struct section_t *section, int parse_options)
}
for(i = section->servers; i; i = alpm_list_next(i)) {
- char *value = alpm_list_getdata(i);
+ char *value = i->data;
if(_add_mirror(db, value) != 0) {
pm_printf(ALPM_LOG_ERROR,
_("could not add mirror '%s' to database '%s' (%s)\n"),