Skip to content

Commit

Permalink
janssonrpcc: use extern not to declare tmb global many times
Browse files Browse the repository at this point in the history
(cherry picked from commit 6bb1e84)
  • Loading branch information
miconda authored and henningw committed May 13, 2020
1 parent 9a90b41 commit 94268c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/janssonrpcc/janssonrpc_funcs.c
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/janssonrpcc/janssonrpc_io.c
Expand Up @@ -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;
Expand Down

0 comments on commit 94268c1

Please sign in to comment.