summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/server.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-27 02:23:03 +0200
committerDan McGee <dan@archlinux.org>2007-04-28 02:40:29 +0200
commit69bc2e62fe2b94bb1189959e4ed396ffbf5088e1 (patch)
tree2a7b3720c44a2bb25b96e2a9192e18f0131896ee /lib/libalpm/server.h
parent3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0 (diff)
downloadpacman-69bc2e62fe2b94bb1189959e4ed396ffbf5088e1.tar.gz
pacman-69bc2e62fe2b94bb1189959e4ed396ffbf5088e1.tar.xz
Remove FREESERVER macro and correctly type _alpm_server_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/server.h')
-rw-r--r--lib/libalpm/server.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libalpm/server.h b/lib/libalpm/server.h
index 8c357ab2..b560f831 100644
--- a/lib/libalpm/server.h
+++ b/lib/libalpm/server.h
@@ -27,8 +27,6 @@
#include <time.h>
#include <download.h>
-#define FREESERVER(p) do { if(p){_alpm_server_free(p); p = NULL;}} while(0)
-
/* Servers */
struct __pmserver_t {
/* useless abstraction now? */
@@ -38,7 +36,7 @@ struct __pmserver_t {
#define PM_DLBUF_LEN (1024 * 10)
pmserver_t *_alpm_server_new(const char *url);
-void _alpm_server_free(void *data);
+void _alpm_server_free(pmserver_t *server);
int _alpm_downloadfiles(alpm_list_t *servers, const char *localpath, alpm_list_t *files);
int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
alpm_list_t *files, const char *mtime1, char *mtime2);