summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/libtar.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 19:51:15 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 19:51:15 (GMT)
commitbb618a7db5fb9df2770c29bc9d86e1c198325504 (patch)
treee610bdabe3f6ef5c228ca81fe31b949eb81805c8 /Utilities/cmtar/libtar.c
parent8b9512559dab2ed2a9bca1052b74c899d8983b49 (diff)
downloadCMake-bb618a7db5fb9df2770c29bc9d86e1c198325504.zip
CMake-bb618a7db5fb9df2770c29bc9d86e1c198325504.tar.gz
CMake-bb618a7db5fb9df2770c29bc9d86e1c198325504.tar.bz2
ENH: Cleanup the file handler stuf so that now any file descriptor type can be used
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r--Utilities/cmtar/libtar.c9
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);
}