summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-18 16:09:34 +0000
committerAaron Griffin <aaron@archlinux.org>2007-01-18 16:09:34 +0000
commit46e26ac5c8d15fbb2385ad972f2f69891a0bd8d0 (patch)
tree6d8f8f454f87107f00cc8b0b994fab97a38d309e /lib/libalpm
parentf6a76dac1284cda79fd20da0c399c9f9a408858a (diff)
Dan McGee <dpmcgee@gmail.com>
* fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 344f04d3..24fceba5 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -253,9 +253,9 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, pmlist_t **data)
/* Attempt to resolve conflicts */
QUESTION(trans, PM_TRANS_CONV_CONFLICT_PKG, miss->target, miss->depend.name, NULL, &skip_this);
if(skip_this) {
- pmpkg_t *pkg = NULL;
- lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)&pkg);
- FREEPKG(pkg);
+ pmpkg_t **pkg = NULL;
+ lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)pkg);
+ FREEPKG(*pkg);
}
}
if(lp != NULL) {