Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-07 13:34:30 -0500
committerDan McGee <dan@archlinux.org>2011-06-09 14:24:45 -0500
commit7d27cf8364b9c5d9a8d89017173f8c88d40cedd5 (patch)
tree4a313e52acfd978a2d53ece7281c9b1dba8674bf /lib/libalpm/db.c
parent24000b83c9a9ba2f25a46914d2919293dc865a2e (diff)
Require handle for alpm_db_register_sync()
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 61143349..8156f2ac 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -39,16 +39,13 @@
#include "package.h"
#include "group.h"
-/* global handle variable */
-extern pmhandle_t *handle;
-
/** \addtogroup alpm_databases Database Functions
* @brief Functions to query and manipulate the database of libalpm
* @{
*/
/** Register a sync database of packages. */
-pmdb_t SYMEXPORT *alpm_db_register_sync(const char *treename)
+pmdb_t SYMEXPORT *alpm_db_register_sync(pmhandle_t *handle, const char *treename)
{
/* Sanity checks */
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, NULL));