diff options
author | Jürgen Hötzel <juergen@archlinux.org> | 2007-03-09 23:26:33 +0000 |
---|---|---|
committer | Jürgen Hötzel <juergen@archlinux.org> | 2007-03-09 23:26:33 +0000 |
commit | 187eb7492d673230b70034e1838b99bfda8cbccc (patch) | |
tree | 4d06ec00a0c0176a73884b46e24180154903d038 /lib/libalpm/cache.c | |
parent | 6f870968edd09479410f3a6a52bb0be75e327366 (diff) | |
download | pacman-187eb7492d673230b70034e1838b99bfda8cbccc.tar.xz |
fixed string comparison callback (patch from Nagy Gabor)
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r-- | lib/libalpm/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c index f441af31..cde3d886 100644 --- a/lib/libalpm/cache.c +++ b/lib/libalpm/cache.c @@ -214,7 +214,7 @@ int _alpm_db_load_grpcache(pmdb_t *db) /* gross signature forces us to * discard const */ (void *)alpm_pkg_get_name(pkg), - _alpm_grp_cmp); + strcmp); db->grpcache = alpm_list_add_sorted(db->grpcache, grp, _alpm_grp_cmp); } else { alpm_list_t *j; @@ -225,7 +225,7 @@ int _alpm_db_load_grpcache(pmdb_t *db) if(strcmp(grp->name, i->data) == 0) { const char *pkgname = alpm_pkg_get_name(pkg); if(!alpm_list_find_str(grp->packages, pkgname)) { - grp->packages = alpm_list_add_sorted(grp->packages, (void *)pkgname, _alpm_grp_cmp); + grp->packages = alpm_list_add_sorted(grp->packages, (void *)pkgname, strcmp); } } } |