Description: gcc-4.6 -Wunused-but-set-variables and undefined symbols Origin: commit, revision id: dmitrijs.ledkovs@credativ.co.uk-20110806202519-t9s07yqtiufylhlx Author: Dmitrijs Ledkovs Last-Update: 2011-08-06 X-Bzr-Revision-Id: dmitrijs.ledkovs@credativ.co.uk-20110806202519-t9s07yqtiufylhlx === modified file 'src/utilfuns/zlib/untgz.c' --- old/src/utilfuns/zlib/untgz.c 2001-03-23 09:00:15 +0000 +++ new/src/utilfuns/zlib/untgz.c 2011-08-06 20:25:19 +0000 @@ -35,6 +35,7 @@ # endif #else # include +# include #endif @@ -80,7 +81,6 @@ enum { TGZ_EXTRACT = 0, TGZ_LIST }; -static char *TGZfname OF((const char *)); void TGZnotfound OF((const char *)); int getoct OF((char *, int)); @@ -102,28 +102,6 @@ static char *TGZprefix[] = { "\0", ".tgz", ".tar.gz", ".tar", NULL }; -/* Return the real name of the TGZ archive */ -/* or NULL if it does not exist. */ - -static char *TGZfname OF((const char *fname)) -{ - static char buffer[1024]; - int origlen,i; - - strcpy(buffer,fname); - origlen = strlen(buffer); - - for (i=0; TGZprefix[i]; i++) - { - strcpy(buffer+origlen,TGZprefix[i]); - if (access(buffer,F_OK) == 0) - return buffer; - } - return NULL; -} - -/* error message for the filename */ - void TGZnotfound OF((const char *fname)) { int i;