summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-12 13:21:26 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-12 13:21:26 (GMT)
commit2e1882389b5908d817a664bd617a5ffc2a8ddfa0 (patch)
treea27fa4d2a8603d44e7ad4b904e6e53d087aa97fb /Utilities/cmtar
parentdaa99e753d4c9c24d40c680012a825c1d704040a (diff)
downloadCMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.zip
CMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.tar.gz
CMake-2e1882389b5908d817a664bd617a5ffc2a8ddfa0.tar.bz2
COMP: Remove warnings
Diffstat (limited to 'Utilities/cmtar')
-rw-r--r--Utilities/cmtar/block.c2
-rw-r--r--Utilities/cmtar/compat/strlcpy.c5
-rw-r--r--Utilities/cmtar/libtar.c12
-rw-r--r--Utilities/cmtar/listhash/list.c.in4
4 files changed, 11 insertions, 12 deletions
diff --git a/Utilities/cmtar/block.c b/Utilities/cmtar/block.c
index e618d79..430eb20 100644
--- a/Utilities/cmtar/block.c
+++ b/Utilities/cmtar/block.c
@@ -24,7 +24,7 @@
/* read a header block */
-int
+static int
th_read_internal(TAR *t)
{
ssize_t i;
diff --git a/Utilities/cmtar/compat/strlcpy.c b/Utilities/cmtar/compat/strlcpy.c
index f85c71b..c10c283 100644
--- a/Utilities/cmtar/compat/strlcpy.c
+++ b/Utilities/cmtar/compat/strlcpy.c
@@ -39,10 +39,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp
* will be copied. Always NUL terminates (unless siz == 0).
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
-size_t strlcpy(dst, src, siz)
- char *dst;
- const char *src;
- size_t siz;
+size_t strlcpy(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;
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",
diff --git a/Utilities/cmtar/listhash/list.c.in b/Utilities/cmtar/listhash/list.c.in
index 71c5bf6..e807f93 100644
--- a/Utilities/cmtar/listhash/list.c.in
+++ b/Utilities/cmtar/listhash/list.c.in
@@ -434,7 +434,8 @@ int
/*
** @LISTHASH_PREFIX@_list_merge() - merge two lists into a new list
*/
-@LISTHASH_PREFIX@_list_t *
+/*
+static @LISTHASH_PREFIX@_list_t *
@LISTHASH_PREFIX@_list_merge(@LISTHASH_PREFIX@_cmpfunc_t cmpfunc, int flags,
@LISTHASH_PREFIX@_list_t *list1,
@LISTHASH_PREFIX@_list_t *list2)
@@ -453,5 +454,6 @@ int
return newlist;
}
+*/