From 46e26ac5c8d15fbb2385ad972f2f69891a0bd8d0 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 18 Jan 2007 16:09:34 +0000 Subject: [PATCH] Dan McGee * fix "warning: dereferencing type-punned pointer will break strict-aliasing rules" --- lib/libalpm/add.c | 6 +++--- 1 file 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) {