diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-03 13:39:04 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-03 13:39:04 (GMT) |
commit | c47e8f64dd3d511ad47268985410a029dc71a5dc (patch) | |
tree | cc6e87a1e34fa4c99055266232b8d75cd1dc1815 /Utilities | |
parent | b6a2c9bd91303b88810ff3b85f89ce64d089bdbc (diff) | |
download | CMake-c47e8f64dd3d511ad47268985410a029dc71a5dc.zip CMake-c47e8f64dd3d511ad47268985410a029dc71a5dc.tar.gz CMake-c47e8f64dd3d511ad47268985410a029dc71a5dc.tar.bz2 |
COMP: Remove warnings
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmtar/append.c | 4 | ||||
-rw-r--r-- | Utilities/cmtar/extract.c | 2 | ||||
-rw-r--r-- | Utilities/cmtar/libtar.c | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c index 6bcef98..cc845ab 100644 --- a/Utilities/cmtar/append.c +++ b/Utilities/cmtar/append.c @@ -65,8 +65,8 @@ tar_append_file(TAR *t, char *realname, char *savename) { struct stat s; libtar_hashptr_t hp; - tar_dev_t *td = NULL; - tar_ino_t *ti = NULL; + tar_dev_t *td; + tar_ino_t *ti; #if !defined(_WIN32) || defined(__CYGWIN__) int i; #else diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c index 2914b47..52afbed 100644 --- a/Utilities/cmtar/extract.c +++ b/Utilities/cmtar/extract.c @@ -329,7 +329,7 @@ int tar_extract_hardlink(TAR * t, char *realname) { char *filename; - char *linktgt = NULL; + char *linktgt; linkname_t *lnp; libtar_hashptr_t hp; char buf[T_BLOCKSIZE]; diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index a4c9741..e470da5 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -318,10 +318,10 @@ usage() int main(int argc, char *argv[]) { - char *tarfile = NULL; + char* tarfile; char *rootdir = NULL; int c; - int mode = 0; + int mode; libtar_list_t *l; #if defined(_WIN32) && !defined(__CYGWIN__) int optind; @@ -329,6 +329,7 @@ main(int argc, char *argv[]) progname = basename(argv[0]); #if !defined(_WIN32) || defined(__CYGWIN__) + mode = 0; while ((c = getopt(argc, argv, "cC:gtvVxz")) != -1) switch (c) { |