From: Michael Schroeder Date: Thu, 31 May 2012 12:40:38 +0000 (+0200) Subject: - fix gzFile usage, oops X-Git-Tag: BASE-SuSE-Code-12_2-Branch~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d39a42bdbca382fe332b4114484d61ab5afafe24;p=thirdparty%2Flibsolv.git - fix gzFile usage, oops --- diff --git a/ext/solv_xfopen.c b/ext/solv_xfopen.c index b1849dc0..71858e52 100644 --- a/ext/solv_xfopen.c +++ b/ext/solv_xfopen.c @@ -50,28 +50,28 @@ static FILE *cookieopen(void *cookie, const char *mode, static ssize_t cookie_gzread(void *cookie, char *buf, size_t nbytes) { - return gzread((gzFile *)cookie, buf, nbytes); + return gzread((gzFile)cookie, buf, nbytes); } static ssize_t cookie_gzwrite(void *cookie, const char *buf, size_t nbytes) { - return gzwrite((gzFile *)cookie, buf, nbytes); + return gzwrite((gzFile)cookie, buf, nbytes); } static int cookie_gzclose(void *cookie) { - return gzclose((gzFile *)cookie); + return gzclose((gzFile)cookie); } static inline FILE *mygzfopen(const char *fn, const char *mode) { - gzFile *gzf = gzopen(fn, mode); + gzFile gzf = gzopen(fn, mode); return cookieopen(gzf, mode, cookie_gzread, cookie_gzwrite, cookie_gzclose); } static inline FILE *mygzfdopen(int fd, const char *mode) { - gzFile *gzf = gzdopen(fd, mode); + gzFile gzf = gzdopen(fd, mode); return cookieopen(gzf, mode, cookie_gzread, cookie_gzwrite, cookie_gzclose); }