summaryrefslogtreecommitdiff
path: root/src/pacman/upgrade.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/upgrade.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/upgrade.c')
-rw-r--r--src/pacman/upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c
index 3d4e34c1..06afde78 100644
--- a/src/pacman/upgrade.c
+++ b/src/pacman/upgrade.c
@@ -73,7 +73,7 @@ int pacman_upgrade(alpm_list_t *targets)
printf(_("loading packages...\n"));
/* add targets to the created transaction */
for(i = targets; i; i = alpm_list_next(i)) {
- char *targ = alpm_list_getdata(i);
+ const char *targ = i->data;
alpm_pkg_t *pkg;
if(alpm_pkg_load(config->handle, targ, 1, level, &pkg) != 0) {