summaryrefslogtreecommitdiff
path: root/debian/patches/0005-untgz-sprintf.patch
blob: 3b3622811aa83db799b824cedda5f58c83fca252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Daniel Glassey <wdg@debian.org>
Date: Sat, 3 Nov 2018 13:34:07 +0700
Subject: remove strtime from untgz

--- a/src/utilfuns/zlib/untgz.c
+++ b/src/utilfuns/zlib/untgz.c
@@ -86,7 +86,6 @@
 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 @@
   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 */