diff options
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r-- | Utilities/cmtar/libtar.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index 58326b0..a4c9741 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -110,24 +110,21 @@ int libtar_gzopen(void* call_data, const char *pathname, int oflags, mode_t mode return fd; } -int libtar_gzclose(void* call_data, int fd) +int libtar_gzclose(void* call_data) { struct gzStruct* gzf = (struct gzStruct*)call_data; - (void)fd; return cm_zlib_gzclose(gzf->GZFile); } -ssize_t libtar_gzread(void* call_data, int fd, void* buf, size_t count) +ssize_t libtar_gzread(void* call_data, void* buf, size_t count) { struct gzStruct* gzf = (struct gzStruct*)call_data; - (void)fd; return cm_zlib_gzread(gzf->GZFile, buf, count); } -ssize_t libtar_gzwrite(void* call_data, int fd, const void* buf, size_t count) +ssize_t libtar_gzwrite(void* call_data, const void* buf, size_t count) { struct gzStruct* gzf = (struct gzStruct*)call_data; - (void)fd; return cm_zlib_gzwrite(gzf->GZFile, (void*)buf, count); } |