Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-19 14:32:53 -0500
committerDan McGee <dan@archlinux.org>2011-09-20 10:23:10 -0500
commit79cbce60ac4a40bf11d039e9bdcd09c852ce3292 (patch)
treec13c3310fb1167f448c238188a93873a63c4092d /lib/libalpm/package.c
parent70e2c34f0f5db329b8e92fe3fc3043e495272f14 (diff)
Remove all usages of alpm_list_getdata() from the library
No need for the indirection; just access ->data instead. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index ecea4118..11bf01a8 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -696,7 +696,7 @@ int _alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg)
/* next see if the package is in a group that is ignored */
for(groups = handle->ignoregroup; groups; groups = groups->next) {
- char *grp = (char *)alpm_list_getdata(groups);
+ char *grp = groups->data;
if(alpm_list_find_str(alpm_pkg_get_groups(pkg), grp)) {
return 1;
}