summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-27 02:29:12 +0200
committerDan McGee <dan@archlinux.org>2007-04-28 07:54:10 +0200
commit0984dab1f2b7beae455518b06aa5675890e01d9c (patch)
treee85f1e40c3d28c35324df7c4b58a7638186424c8 /lib/libalpm/handle.h
parent69bc2e62fe2b94bb1189959e4ed396ffbf5088e1 (diff)
downloadpacman-0984dab1f2b7beae455518b06aa5675890e01d9c.tar.gz
pacman-0984dab1f2b7beae455518b06aa5675890e01d9c.tar.xz
Remove FREEHANDLE macro and correctly type _alpm_handle_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.h')
-rw-r--r--lib/libalpm/handle.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h
index 35e5eb23..0790ad13 100644
--- a/lib/libalpm/handle.h
+++ b/lib/libalpm/handle.h
@@ -69,10 +69,8 @@ typedef struct _pmhandle_t {
extern pmhandle_t *handle;
-#define FREEHANDLE(p) do { if (p) { _alpm_handle_free(p); p = NULL; } } while (0)
-
pmhandle_t *_alpm_handle_new();
-int _alpm_handle_free(pmhandle_t *handle);
+void _alpm_handle_free(pmhandle_t *handle);
#endif /* _ALPM_HANDLE_H */