File: fix_gcc-10.patch

package info (click to toggle)
crashmail 1.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: ansic: 18,671; sh: 401; makefile: 171
file content (30 lines) | stat: -rw-r--r-- 765 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
Description: Fix ftbfs with GCC-10

Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Bug-Debian: https://bugs.debian.org/957107
Forwarded: no

---

--- crashmail-1.7.orig/src/crashmail/handle.c
+++ crashmail-1.7/src/crashmail/handle.c
@@ -94,7 +94,7 @@ bool AddTossNode(struct Area *area,struc
    return(TRUE);
 }
 
-time_t lastt;
+static time_t lastt;
 
 void MakeDirectory(char *dest,uint32_t destsize,char *defdir,char *areaname)
 {
--- crashmail-1.7.orig/src/crashmail/pkt.c
+++ crashmail-1.7/src/crashmail/pkt.c
@@ -551,7 +551,7 @@ struct Pkt *FindPkt(struct Node4D *node,
    return(NULL);
 }
 
-time_t lastt;
+static time_t lastt;
 uint32_t serial;
 
 struct Pkt *CreatePkt(struct Node4D *dest,struct ConfigNode *node,struct Node4D *orig,uint16_t type)