summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-03 19:44:53 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-05-03 19:44:53 +0200
commitf3975acf904e3f0221a4c5ec8964008176168677 (patch)
tree4869d16ebc2feac7ddf99c5971c80e87fb77ad0e /lib/libalpm/alpm.c
parent54f6a1cb12c7e980eac903d4e6af4fe6e7e6b125 (diff)
downloadpacman-f3975acf904e3f0221a4c5ec8964008176168677.tar.gz
pacman-f3975acf904e3f0221a4c5ec8964008176168677.tar.xz
code cleanup
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 6c79c30b..691b478c 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -213,8 +213,8 @@ int alpm_db_unregister(pmdb_t *db)
handle->db_local = NULL;
found = 1;
} else {
- void *data;
- handle->dbs_sync = _alpm_list_remove(handle->dbs_sync, db, db_cmp, &data);
+ pmdb_t *data;
+ handle->dbs_sync = _alpm_list_remove(handle->dbs_sync, db, db_cmp, (void **)&data);
if(data) {
db_close(data);
found = 1;