Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-12 04:45:21 +0000
committerAaron Griffin <aaron@archlinux.org>2007-02-12 04:45:21 +0000
commitdfb1f1e23730c1d4e8aa5c041ed758063c81c692 (patch)
treeb56ef8e6e60cf353f487fed505e7f6e4cb83e95e /lib/libalpm/alpm.c
parent9803ec306691a51db820a7f14fc240eae4c910e8 (diff)
* Updated the README file
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 8ca491b8..83acef85 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -615,17 +615,15 @@ char SYMEXPORT *alpm_pkg_name_hasarch(char *pkgname)
* @param db pointer to the package database to search in
* @return the list of packages on success, NULL on error
*/
-alpm_list_t SYMEXPORT *alpm_db_search(pmdb_t *db)
+alpm_list_t SYMEXPORT *alpm_db_search(pmdb_t *db, alpm_list_t* needles)
{
ALPM_LOG_FUNC;
/* Sanity checks */
ASSERT(handle != NULL, return(NULL));
- ASSERT(handle->needles != NULL, return(NULL));
- ASSERT(handle->needles->data != NULL, return(NULL));
ASSERT(db != NULL, return(NULL));
- return(_alpm_db_search(db, handle->needles));
+ return(_alpm_db_search(db, needles));
}
/** @} */