COMP: Remove warnings
This commit is contained in:
parent
b6a2c9bd91
commit
c47e8f64dd
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue