summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-07 23:14:35 +0200
committerDan McGee <dan@archlinux.org>2011-06-14 02:41:16 +0200
commit4d9278f87fffc1d1fe7e6a2f805a2a8df296bb0d (patch)
tree2db447cd14c08ee93bed9264bc1e1b458f0b9e32 /lib/libalpm/alpm.c
parent52bffd2457b7ba3b6fb08d3aa959ea0b53a45dc8 (diff)
downloadpacman-4d9278f87fffc1d1fe7e6a2f805a2a8df296bb0d.tar.gz
pacman-4d9278f87fffc1d1fe7e6a2f805a2a8df296bb0d.tar.xz
Remove global handle variable
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 86b1619a..5d475ce4 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -34,9 +34,6 @@
#include "log.h"
#include "util.h"
-/* Globals */
-extern pmhandle_t *handle;
-
/** \addtogroup alpm_interface Interface Functions
* @brief Functions to initialize and release libalpm
* @{
@@ -86,8 +83,6 @@ pmhandle_t SYMEXPORT *alpm_initialize(const char *root, const char *dbpath,
myhandle->curl = curl_easy_init();
#endif
- /* TODO temporary until global var removed */
- handle = myhandle;
return myhandle;
cleanup:
@@ -123,9 +118,6 @@ int SYMEXPORT alpm_release(pmhandle_t *myhandle)
}
_alpm_handle_free(myhandle);
- myhandle = NULL;
- /* TODO temporary until global var removed */
- handle = NULL;
#ifdef HAVE_LIBCURL
curl_global_cleanup();