diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-18 00:28:53 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-18 10:47:41 -0500 |
commit | 5d291d050ebd714851c6bd85efd49a03d88414f0 (patch) | |
tree | bf8acfd686e0040b22da93aa61c22548cff07ef5 /lib/libalpm/diskspace.c | |
parent | c4bd476ad13e142fe8323fe74d84b3950b53da17 (diff) | |
download | pacman-5d291d050ebd714851c6bd85efd49a03d88414f0.tar.xz |
Remove usages of alpm_list_next() in backend
Another function call that can be replaced by a single pointer
dereference.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/diskspace.c')
-rw-r--r-- | lib/libalpm/diskspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c index 4e7ffaad..1e2fa143 100644 --- a/lib/libalpm/diskspace.c +++ b/lib/libalpm/diskspace.c @@ -282,7 +282,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) } calculate_installed_size(handle, mount_points, pkg); - for(i = mount_points; i; i = alpm_list_next(i)) { + for(i = mount_points; i; i = i->next) { alpm_mountpoint_t *data = i->data; if(data->blocks_needed > data->max_blocks_needed) { data->max_blocks_needed = data->blocks_needed; @@ -293,7 +293,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) PROGRESS(trans, ALPM_TRANS_PROGRESS_DISKSPACE_START, "", 100, numtargs, current); - for(i = mount_points; i; i = alpm_list_next(i)) { + for(i = mount_points; i; i = i->next) { alpm_mountpoint_t *data = i->data; if(data->used && data->read_only) { _alpm_log(handle, ALPM_LOG_ERROR, _("Partition %s is mounted read only\n"), @@ -318,7 +318,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) } } - for(i = mount_points; i; i = alpm_list_next(i)) { + for(i = mount_points; i; i = i->next) { alpm_mountpoint_t *data = i->data; FREE(data->mount_dir); } |