COMP: Remove warnings

This commit is contained in:
Andy Cedilnik 2006-01-03 08:39:04 -05:00
parent b6a2c9bd91
commit c47e8f64dd
3 changed files with 6 additions and 5 deletions

View File

@ -65,8 +65,8 @@ tar_append_file(TAR *t, char *realname, char *savename)
{ {
struct stat s; struct stat s;
libtar_hashptr_t hp; libtar_hashptr_t hp;
tar_dev_t *td = NULL; tar_dev_t *td;
tar_ino_t *ti = NULL; tar_ino_t *ti;
#if !defined(_WIN32) || defined(__CYGWIN__) #if !defined(_WIN32) || defined(__CYGWIN__)
int i; int i;
#else #else

View File

@ -329,7 +329,7 @@ int
tar_extract_hardlink(TAR * t, char *realname) tar_extract_hardlink(TAR * t, char *realname)
{ {
char *filename; char *filename;
char *linktgt = NULL; char *linktgt;
linkname_t *lnp; linkname_t *lnp;
libtar_hashptr_t hp; libtar_hashptr_t hp;
char buf[T_BLOCKSIZE]; char buf[T_BLOCKSIZE];

View File

@ -318,10 +318,10 @@ usage()
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
char *tarfile = NULL; char* tarfile;
char *rootdir = NULL; char *rootdir = NULL;
int c; int c;
int mode = 0; int mode;
libtar_list_t *l; libtar_list_t *l;
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
int optind; int optind;
@ -329,6 +329,7 @@ main(int argc, char *argv[])
progname = basename(argv[0]); progname = basename(argv[0]);
#if !defined(_WIN32) || defined(__CYGWIN__) #if !defined(_WIN32) || defined(__CYGWIN__)
mode = 0;
while ((c = getopt(argc, argv, "cC:gtvVxz")) != -1) while ((c = getopt(argc, argv, "cC:gtvVxz")) != -1)
switch (c) switch (c)
{ {