File: fix-multiple-definitions.patch

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (28 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (2)
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
From: Chris Hofstaedtler <zeha@debian.org>
Date: Fri, 27 Sep 2024 23:19:10 +0200
Subject: Fix multiple conflicting defs of dispatch_to_wdp/wsp/push

Needed on gcc-10.

Forwarded: not-needed
---
 wap/wtp_resp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wap/wtp_resp.c b/wap/wtp_resp.c
index 57c2d03..46a6790 100644
--- a/wap/wtp_resp.c
+++ b/wap/wtp_resp.c
@@ -96,9 +96,9 @@ static Counter *resp_machine_id_counter = NULL;
 static enum { limbo, running, terminating } resp_run_status = limbo;
 
 
-wap_dispatch_func_t *dispatch_to_wdp;
-wap_dispatch_func_t *dispatch_to_wsp;
-wap_dispatch_func_t *dispatch_to_push;
+static wap_dispatch_func_t *dispatch_to_wdp;
+static wap_dispatch_func_t *dispatch_to_wsp;
+static wap_dispatch_func_t *dispatch_to_push;
 
 /*
  * Queue of events to be handled by WTP responder.