Module: sip-router Branch: master Commit: efbb8d1d0fc0f9a560d085a133699a9b23bd075f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=efbb8d1d...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Apr 29 17:24:08 2009 +0200
tm: _tm_table should be extern
- _tm_table was declared in h_table.h without "extern", causing a _tm_table symbol to be created in each module including h_table.h.
Reported-by: Daniel-Constantin Mierla miconda@gmail.com
---
modules/tm/h_table.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/tm/h_table.h b/modules/tm/h_table.h index d38e3d6..dd18820 100644 --- a/modules/tm/h_table.h +++ b/modules/tm/h_table.h @@ -424,7 +424,8 @@ struct s_table
/* pointer to the big table where all the transaction data lives */ -struct s_table* _tm_table; /* private internal stuff, don't touch directly */ +extern struct s_table* _tm_table; /* private internal stuff, don't touch + directly */
#define list_entry(ptr, type, member) \ ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))