Debian Codegraph @

debian/patches/08_fix_variables_declaration_conflicts

raw
1 Description: Fix conflicting declarations of some variables
2 Author: Guillem Jover <[email protected]>
3 Bug-Debian: https://bugs.debian.org/688462
4 Bug-Debian: https://bugs.debian.org/1074954
5 Origin: vendor
6 Forwarded: no
7 Last-Update: 2024-12-12
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 ---
11 db.c | 1 +
12 dbs.h | 12 ++++++------
13 msg.c | 10 +++++-----
14 3 files changed, 12 insertions(+), 11 deletions(-)
15
16 --- a/dbs.h
17 +++ b/dbs.h
18 @@ -12,9 +12,9 @@
19 extern regex_t *f_rhdr_drop[];
20 extern regex_t *f_rhdr_match[];
21 extern char *f_rhdr_entry[];
22 -extern char *e_inv;
23 -extern char *e_res;
24 -extern char *e_con;
25 -extern char *e_post;
26 -extern char *e_fil;
27 -extern char *e_nic;
28 +extern struct msg e_inv;
29 +extern struct msg e_res;
30 +extern struct msg e_con;
31 +extern struct msg e_post;
32 +extern struct msg e_fil;
33 +extern struct msg e_nic;
34 --- a/msg.c
35 +++ b/msg.c
36 @@ -46,19 +46,19 @@
37
38 switch (m) {
39 case E_INV:
40 - p = e_inv;
41 + p = e_inv.c;
42 break;
43 case E_RES:
44 - p = e_res;
45 + p = e_res.c;
46 break;
47 case E_CON:
48 - p = e_con;
49 + p = e_con.c;
50 break;
51 case E_POST:
52 - p = e_post;
53 + p = e_post.c;
54 break;
55 case E_FIL:
56 - p = e_fil;
57 + p = e_fil.c;
58 break;
59 }
60
61 --- a/db.c
62 +++ b/db.c
63 @@ -39,6 +39,7 @@
64 #include "cfg.h"
65 #include "print.h"
66 #include "msg.h"
67 +#include "dbs.h"
68 #include "alloc.h"
69 #include "file.h"
70 #include "db.h"