diff options
Diffstat (limited to 'src/utilfuns/zlib/untgz.c')
-rw-r--r-- | src/utilfuns/zlib/untgz.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/utilfuns/zlib/untgz.c b/src/utilfuns/zlib/untgz.c index 6aba41c..e3f8d47 100644 --- a/src/utilfuns/zlib/untgz.c +++ b/src/utilfuns/zlib/untgz.c @@ -86,7 +86,6 @@ enum { TGZ_EXTRACT = 0, TGZ_LIST }; void TGZnotfound OF((const char *)); int getoct OF((char *, int)); -char *strtime OF((time_t *)); int ExprMatch OF((char *,char *)); int makedir OF((char *)); @@ -141,18 +140,6 @@ int getoct(char *p,int width) return result; } -char *strtime (time_t *t) -{ - struct tm *local; - static char result[32]; - - local = localtime(t); - sprintf(result,"%2d/%02d/%4d %02d:%02d:%02d", - local->tm_mday, local->tm_mon+1, local->tm_year+1900, - local->tm_hour, local->tm_min, local->tm_sec); - return result; -} - /* regular expression matching */ @@ -201,7 +188,7 @@ int makedir (char *newdir) { char *buffer = strdup(newdir); char *p; - int len = strlen(buffer); + int len = (int)strlen(buffer); if (len <= 0) { free(buffer); @@ -262,7 +249,7 @@ int untar (gzFile in, const char *dest) { int remaining = 0; FILE *outfile = NULL; char fname[BLOCKSIZE]; - time_t tartime = 0; + time_t tartime; while (1) { len = gzread(in, &buffer, BLOCKSIZE); |