summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-03 19:19:19 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-05-03 19:19:19 +0200
commit220c084770895353fd8fecb774da1631a5e82ed3 (patch)
tree21ee140bb9a99a80a0f9afecf29ee7a6600a3c18 /lib/libalpm
parent251e52cea747dde9af5b3898cde94b8c6533463f (diff)
downloadpacman-220c084770895353fd8fecb774da1631a5e82ed3.tar.gz
pacman-220c084770895353fd8fecb774da1631a5e82ed3.tar.xz
moved pkg_cmp() to cache.c
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/package.c10
-rw-r--r--lib/libalpm/package.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index c448478e..f5a3c33a 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -342,16 +342,6 @@ error:
return(NULL);
}
-/* Helper function for sorting packages
- */
-int pkg_cmp(const void *p1, const void *p2)
-{
- pmpkg_t *pkg1 = (pmpkg_t *)p1;
- pmpkg_t *pkg2 = (pmpkg_t *)p2;
-
- return(strcmp(pkg1->name, pkg2->name));
-}
-
/* Test for existence of a package in a PMList*
* of pmpkg_t*
*
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index a555a7e9..9623e483 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -90,7 +90,6 @@ pmpkg_t* pkg_new();
pmpkg_t *pkg_dup(pmpkg_t *pkg);
void pkg_free(pmpkg_t *pkg);
pmpkg_t *pkg_load(char *pkgfile);
-int pkg_cmp(const void *p1, const void *p2);
int pkg_isin(pmpkg_t *needle, PMList *haystack);
int pkg_splitname(char *target, char *name, char *version);