From 69bc2e62fe2b94bb1189959e4ed396ffbf5088e1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 20:23:03 -0400 Subject: Remove FREESERVER macro and correctly type _alpm_server_free Signed-off-by: Dan McGee --- lib/libalpm/server.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libalpm/server.h') 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 #include -#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); -- cgit v1.2.3