summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-26 09:38:48 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-26 09:38:48 +0100
commit8fbdd03cce3c04a8208df30f435bc3e91a84ade3 (patch)
treec7ca34f17eff52f9e85d8f1b1bd3be2ecb292753 /lib/libalpm/cache.c
parent52376150fa267f4f69af75cb9ff4a720430a5083 (diff)
downloadpacman-8fbdd03cce3c04a8208df30f435bc3e91a84ade3.tar.gz
pacman-8fbdd03cce3c04a8208df30f435bc3e91a84ade3.tar.xz
* Enforce const char* params when using strings
* Unified some functions names "package" -> "pkg" for consistency * Removed the goofy 'faketarget' stuff used for dep testing * Renamed alpm_pkg_isin -> alpm_pkg_find * Renamed alpm_db_readpkg -> alpm_db_get_pkg
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 57992d87..8e043096 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -187,7 +187,7 @@ int _alpm_db_remove_pkgfromcache(pmdb_t *db, pmpkg_t *pkg)
return(0);
}
-pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, char *target)
+pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, const char *target)
{
ALPM_LOG_FUNC;
@@ -201,7 +201,7 @@ pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, char *target)
return(NULL);
}
- return(_alpm_pkg_isin(target, pkgcache));
+ return(_alpm_pkg_find(target, pkgcache));
}
/* Returns a new group cache from db.
@@ -286,7 +286,7 @@ alpm_list_t *_alpm_db_get_grpcache(pmdb_t *db)
return(db->grpcache);
}
-pmgrp_t *_alpm_db_get_grpfromcache(pmdb_t *db, char *target)
+pmgrp_t *_alpm_db_get_grpfromcache(pmdb_t *db, const char *target)
{
alpm_list_t *i;