From a5d2c59c39a37ed3d6ed7515bec69291add211c6 Mon Sep 17 00:00:00 2001 From: David Cole Date: Mon, 6 Feb 2006 09:31:55 -0500 Subject: COMP: Fix CMake dashboard warnings related to previous revisions. --- Utilities/cmtar/extract.c | 2 +- Utilities/cmtar/output.c | 3 ++- Utilities/cmtar/wrapper.c | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c index f1a6407..6d37659 100644 --- a/Utilities/cmtar/extract.c +++ b/Utilities/cmtar/extract.c @@ -149,7 +149,7 @@ tar_extract_file(TAR *t, char *realname) { int i; linkname_t *lnp; - char *pathname = 0; + char *pathname; if (t->options & TAR_NOOVERWRITE) { diff --git a/Utilities/cmtar/output.c b/Utilities/cmtar/output.c index a60cde2..56e5a74 100644 --- a/Utilities/cmtar/output.c +++ b/Utilities/cmtar/output.c @@ -13,6 +13,7 @@ #include #include +#include #if !defined(_WIN32) || defined(__CYGWIN__) # include @@ -76,7 +77,7 @@ th_print_long_ls(TAR *t) char groupname[_POSIX_LOGIN_NAME_MAX]; time_t mtime; struct tm *mtm; - char *pathname = 0; + char *pathname; #ifdef HAVE_STRFTIME char timebuf[18]; diff --git a/Utilities/cmtar/wrapper.c b/Utilities/cmtar/wrapper.c index e82b96e..c7a1516 100644 --- a/Utilities/cmtar/wrapper.c +++ b/Utilities/cmtar/wrapper.c @@ -13,6 +13,8 @@ #include #include +#include + #include #if defined(HAVE_SYS_PARAM_H) #include @@ -39,7 +41,7 @@ tar_extract_glob(TAR *t, char *globname, char *prefix) char *filename; char buf[TAR_MAXPATHLEN]; int i; - char *pathname = 0; + char *pathname; while ((i = th_read(t)) == 0) { @@ -94,7 +96,7 @@ tar_extract_all(TAR *t, char *prefix) char *filename; char buf[TAR_MAXPATHLEN]; int i; - char *pathname = 0; + char *pathname; #ifdef DEBUG printf("==> tar_extract_all(TAR *t, \"%s\")\n", -- cgit v0.12