diff options
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r-- | Utilities/cmtar/libtar.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index fdeccf2..a4bd966 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -126,19 +126,19 @@ int libtar_gzopen(void* call_data, const char *pathname, int oflags, mode_t mode return fd; } -int libtar_gzclose(void* call_data) +static int libtar_gzclose(void* call_data) { struct gzStruct* gzf = (struct gzStruct*)call_data; return cm_zlib_gzclose(gzf->GZFile); } -ssize_t libtar_gzread(void* call_data, void* buf, size_t count) +static ssize_t libtar_gzread(void* call_data, void* buf, size_t count) { struct gzStruct* gzf = (struct gzStruct*)call_data; return cm_zlib_gzread(gzf->GZFile, buf, count); } -ssize_t libtar_gzwrite(void* call_data, const void* buf, size_t count) +static ssize_t libtar_gzwrite(void* call_data, const void* buf, size_t count) { struct gzStruct* gzf = (struct gzStruct*)call_data; return cm_zlib_gzwrite(gzf->GZFile, (void*)buf, count); @@ -212,7 +212,7 @@ create(char *tarfile, char *rootdir, libtar_list_t *l) } -int +static int list(char *tarfile) { TAR *t; @@ -272,7 +272,7 @@ list(char *tarfile) } -int +static int extract(char *tarfile, char *rootdir) { TAR *t; @@ -316,7 +316,7 @@ extract(char *tarfile, char *rootdir) } -void +static void usage() { printf("Usage: %s [-C rootdir] [-g] [-z] -x|-t filename.tar\n", |