summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.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/db.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/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index f61487a5..8a7210d3 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -51,7 +51,7 @@
#include "cache.h"
#include "alpm.h"
-pmdb_t *_alpm_db_new(char *root, char* dbpath, char *treename)
+pmdb_t *_alpm_db_new(const char *root, const char *dbpath, const char *treename)
{
pmdb_t *db;
@@ -150,7 +150,7 @@ alpm_list_t *_alpm_db_search(pmdb_t *db, alpm_list_t *needles)
return(ret);
}
-pmdb_t *_alpm_db_register(char *treename, alpm_cb_db_register callback)
+pmdb_t *_alpm_db_register(const char *treename, alpm_cb_db_register callback)
{
struct stat buf;
pmdb_t *db;