summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2012-04-18 12:39:49 +0000
committerJason Woodward2012-04-18 12:39:49 +0000
commit065bd897f2f00b07bbc8fb5a489f764739ed88df (patch)
treeedc05b3ec52c93316834d626dd2e41c61503df9c
parent437dc971ec82dcb54dce8545dab08ea55bdd7df5 (diff)
downloadslapt-get-065bd897f2f00b07bbc8fb5a489f764739ed88df.tar.gz
updated zlib usage to fix "expected 'gzFile' but argument is of type 'struct gzFile_s **'"
-rw-r--r--ChangeLog4
-rw-r--r--src/package.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f3b9161..dcb7eda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
+0.10.2n Apr 18, 2012
+ * updated zlib usage to fix "expected 'gzFile' but argument is of type
+ 'struct gzFile_s **'". Thanks Igor.
+
0.10.2m Jan 08, 2012
* prefer our architecture in x86/x86_64 multilib package comparison
* strip whitespace from url before parsing from slapt-getrc
diff --git a/src/package.c b/src/package.c
index b0ac4a8..c378b28 100644
--- a/src/package.c
+++ b/src/package.c
@@ -2634,7 +2634,7 @@ void slapt_free_pkg_err_list(slapt_pkg_err_list_t *l)
/* FIXME this sucks... it needs to check file headers and more */
static FILE *slapt_gunzip_file (const char *file_name,FILE *dest_file)
{
- gzFile *data = NULL;
+ gzFile data = NULL;
char buffer[SLAPT_MAX_ZLIB_BUFFER];
if (dest_file == NULL)