File: 0005-untgz-sprintf.patch

package info (click to toggle)
sword 1.9.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,968 kB
  • sloc: cpp: 47,448; ansic: 7,814; sh: 4,825; objc: 1,744; makefile: 1,308; cs: 906; java: 864; perl: 784; pascal: 681; tcl: 350; xml: 204; python: 79
file content (39 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
From: Daniel Glassey <wdg@debian.org>
Date: Sat, 3 Nov 2018 13:34:07 +0700
Subject: remove strtime from untgz

---
 src/utilfuns/zlib/untgz.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/utilfuns/zlib/untgz.c b/src/utilfuns/zlib/untgz.c
index 5c95a90..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 */