Module: kamailio
Branch: 5.3
Commit: c93c0a989c690acebc6e2896f6b2d7095b95eb3d
URL:
https://github.com/kamailio/kamailio/commit/c93c0a989c690acebc6e2896f6b2d70…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-09T09:19:42+01:00
janssonrpcc: use extern not to declare tmb global many times
(cherry picked from commit 6bb1e84907a6c8bdb0c72289bad7b9915c9b3385)
---
Modified: src/modules/janssonrpcc/janssonrpc_funcs.c
Modified: src/modules/janssonrpcc/janssonrpc_io.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c93c0a989c690acebc6e2896f6b2d70…
Patch:
https://github.com/kamailio/kamailio/commit/c93c0a989c690acebc6e2896f6b2d70…
---
diff --git a/src/modules/janssonrpcc/janssonrpc_funcs.c
b/src/modules/janssonrpcc/janssonrpc_funcs.c
index a8683407b3..ea96f69532 100644
--- a/src/modules/janssonrpcc/janssonrpc_funcs.c
+++ b/src/modules/janssonrpcc/janssonrpc_funcs.c
@@ -31,7 +31,7 @@
#include "janssonrpc_funcs.h"
-struct tm_binds tmb;
+extern struct tm_binds tmb;
int jsonrpc_request(struct sip_msg* _m,
char* _conn,
diff --git a/src/modules/janssonrpcc/janssonrpc_io.c
b/src/modules/janssonrpcc/janssonrpc_io.c
index 898458b268..a503322057 100644
--- a/src/modules/janssonrpcc/janssonrpc_io.c
+++ b/src/modules/janssonrpcc/janssonrpc_io.c
@@ -51,7 +51,7 @@
#include "janssonrpc_connect.h"
#include "netstring.h"
-struct tm_binds tmb;
+extern struct tm_binds tmb;
/* event bases */
struct event_base* global_ev_base = NULL;