diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-13 13:27:10 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-13 13:27:10 (GMT) |
commit | 4f728e93e19ffcf8aacbdad0b8cbedbeea03cbde (patch) | |
tree | d9c498dcace58ec370290bb82eff6002d90dd67a /Utilities/cmtar | |
parent | d2710d514268813d0b0291c6d5571ee6638b8b7b (diff) | |
download | CMake-4f728e93e19ffcf8aacbdad0b8cbedbeea03cbde.zip CMake-4f728e93e19ffcf8aacbdad0b8cbedbeea03cbde.tar.gz CMake-4f728e93e19ffcf8aacbdad0b8cbedbeea03cbde.tar.bz2 |
COMP: Remove warnings
Diffstat (limited to 'Utilities/cmtar')
-rw-r--r-- | Utilities/cmtar/compat/strlcpy.c | 2 | ||||
-rw-r--r-- | Utilities/cmtar/libtar.c | 5 | ||||
-rw-r--r-- | Utilities/cmtar/listhash/list.c.in | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/Utilities/cmtar/compat/strlcpy.c b/Utilities/cmtar/compat/strlcpy.c index c10c283..ee46557 100644 --- a/Utilities/cmtar/compat/strlcpy.c +++ b/Utilities/cmtar/compat/strlcpy.c @@ -34,6 +34,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp #include <sys/types.h> #include <string.h> +size_t strlcpy(char *dst, const char *src, size_t siz); + /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index a4bd966..c918e24 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -83,7 +83,8 @@ struct gzStruct GZStruct; #endif #endif -int libtar_gzopen(void* call_data, const char *pathname, int oflags, mode_t mode) +static int libtar_gzopen(void* call_data, const char *pathname, + int oflags, mode_t mode) { char *gzoflags; int fd; @@ -155,7 +156,7 @@ tartype_t gztype = { #endif /* HAVE_LIBZ */ -int +static int create(char *tarfile, char *rootdir, libtar_list_t *l) { TAR *t; diff --git a/Utilities/cmtar/listhash/list.c.in b/Utilities/cmtar/listhash/list.c.in index e807f93..e9d8365 100644 --- a/Utilities/cmtar/listhash/list.c.in +++ b/Utilities/cmtar/listhash/list.c.in @@ -414,7 +414,7 @@ int /* ** @LISTHASH_PREFIX@_list_dup() - copy an existing list */ -@LISTHASH_PREFIX@_list_t * +static @LISTHASH_PREFIX@_list_t * @LISTHASH_PREFIX@_list_dup(@LISTHASH_PREFIX@_list_t *l) { @LISTHASH_PREFIX@_list_t *newlist; |