index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2008-05-10 18:47:42 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-05-13 15:49:02 -0500 |
commit | f43805d875ad5c672afbbfff48bded2087204773 (patch) | |
tree | 6cfc9e8ea40230aa1ec3349361f6f1f1fad63f37 /lib/libalpm/package.c | |
parent | 8248b4bfb1abe175d73e20106a18172da5296836 (diff) |
-rw-r--r-- | lib/libalpm/package.c | 12 |
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index eabb2f3e..c39eae32 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -837,15 +837,9 @@ int _alpm_pkg_compare_versions(pmpkg_t *local_pkg, pmpkg_t *pkg) */ int _alpm_pkg_cmp(const void *p1, const void *p2) { - pmpkg_t *pk1 = (pmpkg_t *)p1; - pmpkg_t *pk2 = (pmpkg_t *)p2; - - return(strcmp(alpm_pkg_get_name(pk1), alpm_pkg_get_name(pk2))); -} - -int _alpm_pkgname_pkg_cmp(const void *pkgname, const void *package) -{ - return(strcmp(alpm_pkg_get_name((pmpkg_t *) package), (char *) pkgname)); + pmpkg_t *pkg1 = (pmpkg_t *)p1; + pmpkg_t *pkg2 = (pmpkg_t *)p2; + return(strcmp(alpm_pkg_get_name(pkg1), alpm_pkg_get_name(pkg2))); } /* Test for existence of a package in a alpm_list_t* |