diff options
author | Michael Schroeder <mls@suse.de> | 2012-05-31 14:40:38 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-05-31 14:40:38 +0200 |
commit | d39a42bdbca382fe332b4114484d61ab5afafe24 (patch) | |
tree | db0ad99cc935034c55d98d522213754468da487a /ext/solv_xfopen.c | |
parent | 5b994634527b29c229bc96fdbdc6e4eeab8be290 (diff) | |
download | libsolv-d39a42bdbca382fe332b4114484d61ab5afafe24.tar.gz libsolv-d39a42bdbca382fe332b4114484d61ab5afafe24.tar.bz2 libsolv-d39a42bdbca382fe332b4114484d61ab5afafe24.zip |
- fix gzFile usage, oops
Diffstat (limited to 'ext/solv_xfopen.c')
-rw-r--r-- | ext/solv_xfopen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/solv_xfopen.c b/ext/solv_xfopen.c index b1849dc..71858e5 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); } |