Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-01 03:08:41 +0000
committerDan McGee <dan@archlinux.org>2007-03-01 03:08:41 +0000
commit4a45a273ead089ffa280ce5c160039ec392fa6f3 (patch)
tree62299628f5243459bf3324c9bc01be9e89fa6d70 /lib/libalpm/db.c
parent13e21110459aaf99dd739802c2b07b3d5b9e2a68 (diff)
* Fix up _alpm_db_free, remove use of void*.
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 62255a3f..a44e079d 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -78,13 +78,11 @@ pmdb_t *_alpm_db_new(const char *root, const char *dbpath, const char *treename)
return(db);
}
-void _alpm_db_free(void *data)
+void _alpm_db_free(pmdb_t *db)
{
- pmdb_t *db = data;
-
ALPM_LOG_FUNC;
- FREELISTSERVERS(db->servers);
+ _FREELIST(db->servers, _alpm_server_free);
FREE(db->path);
FREE(db);