diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-12 13:21:26 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-12 13:21:26 (GMT) |
commit | 2e1882389b5908d817a664bd617a5ffc2a8ddfa0 (patch) | |
tree | a27fa4d2a8603d44e7ad4b904e6e53d087aa97fb /Utilities/cmtar/libtar.c | |
parent | daa99e753d4c9c24d40c680012a825c1d704040a (diff) | |
download | CMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.zip CMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.tar.gz CMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.tar.bz2 |
COMP: Remove warnings
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", |