File: fix-incompatible-pointer-types.patch

package info (click to toggle)
crack 5.0a-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,248 kB
  • sloc: ansic: 7,445; perl: 1,375; sh: 1,066; makefile: 216
file content (33 lines) | stat: -rw-r--r-- 802 bytes parent folder | download
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
Description: Correct "long" to "time_t"
 In addition, make sure the signed 64-bit value is printed as such.
Author: Sven Geuer <sge@debian.org>
Forwarded: not-needed
Last-Update: 2025-09-11
--- a/src/util/cracker.c
+++ b/src/util/cracker.c
@@ -105,11 +105,11 @@
 char *fmt;
 char *a, *b, *c, *d, *e, *f;
 {
-    long t;
+    time_t t;
 
     time(&t);
 
-    fprintf(stdout, "%c:%ld:", key, t);
+    fprintf(stdout, "%c:%lld:", key, (long long int)t);
     fprintf(stdout, fmt, a, b, c, d, e, f);
 
     fflush(stdout);
--- a/src/libdes/read_pwd.c
+++ b/src/libdes/read_pwd.c
@@ -138,7 +138,8 @@
 #endif
 #endif
 
-static void (*savsig[NX509_SIG])();
+/*static void (*savsig[NX509_SIG])();*/
+static __sighandler_t savsig[NX509_SIG];
 static jmp_buf save;
 
 int des_read_password(key, prompt, verify)