Permalink
Browse files

- fix gzFile usage, oops

  • Loading branch information...
mlschroe committed May 31, 2012
1 parent 7e8a3f1 commit f8a26c36fcc815782e1e8ea04c5715f47add549a
Showing with 5 additions and 5 deletions.
  1. +5 −5 ext/sat_xfopen.c
View
@@ -16,16 +16,16 @@
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 int
cookie_gzclose(void *cookie)
{
- return gzclose((gzFile *)cookie);
+ return gzclose((gzFile)cookie);
}
-static FILE *mygzfopen(gzFile* gzf)
+static FILE *mygzfopen(gzFile gzf)
{
#ifdef HAVE_FUNOPEN
return funopen(
@@ -49,7 +49,7 @@ FILE *
sat_xfopen(const char *fn, const char *mode)
{
char *suf;
- gzFile *gzf;
+ gzFile gzf;
if (!fn)
return 0;
@@ -68,7 +68,7 @@ FILE *
sat_xfopen_fd(const char *fn, int fd, const char *mode)
{
char *suf;
- gzFile *gzf;
+ gzFile gzf;
suf = fn ? strrchr(fn, '.') : 0;
if (!mode)

0 comments on commit f8a26c3

Please sign in to comment.