moved pkg_cmp() to cache.c
This commit is contained in:
parent
251e52cea7
commit
220c084770
2 changed files with 0 additions and 11 deletions
|
@ -342,16 +342,6 @@ error:
|
||||||
return(NULL);
|
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*
|
/* Test for existence of a package in a PMList*
|
||||||
* of pmpkg_t*
|
* of pmpkg_t*
|
||||||
*
|
*
|
||||||
|
|
|
@ -90,7 +90,6 @@ pmpkg_t* pkg_new();
|
||||||
pmpkg_t *pkg_dup(pmpkg_t *pkg);
|
pmpkg_t *pkg_dup(pmpkg_t *pkg);
|
||||||
void pkg_free(pmpkg_t *pkg);
|
void pkg_free(pmpkg_t *pkg);
|
||||||
pmpkg_t *pkg_load(char *pkgfile);
|
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_isin(pmpkg_t *needle, PMList *haystack);
|
||||||
int pkg_splitname(char *target, char *name, char *version);
|
int pkg_splitname(char *target, char *name, char *version);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue