summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index d9a3931e..191c8ba0 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -358,8 +358,8 @@ void _alpm_db_free(pmdb_t *db)
int _alpm_db_cmp(const void *d1, const void *d2)
{
- pmdb_t *db1 = (pmdb_t *)db1;
- pmdb_t *db2 = (pmdb_t *)db2;
+ pmdb_t *db1 = (pmdb_t *)d1;
+ pmdb_t *db2 = (pmdb_t *)d2;
return(strcmp(db1->treename, db2->treename));
}