Module: kamailio
Branch: master
Commit: 6bb1e84907a6c8bdb0c72289bad7b9915c9b3385
URL:
https://github.com/kamailio/kamailio/commit/6bb1e84907a6c8bdb0c72289bad7b99…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-07T11:54:28+01:00
janssonrpcc: use extern not to declare tmb global many times
---
Modified: src/modules/janssonrpcc/janssonrpc_funcs.c
Modified: src/modules/janssonrpcc/janssonrpc_io.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6bb1e84907a6c8bdb0c72289bad7b99…
Patch:
https://github.com/kamailio/kamailio/commit/6bb1e84907a6c8bdb0c72289bad7b99…
---
diff --git a/src/modules/janssonrpcc/janssonrpc_funcs.c
b/src/modules/janssonrpcc/janssonrpc_funcs.c
index 3995174722..93e62bd53d 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 ebb64705b5..5e9d01d004 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;