[sr-dev] git:master: htable: Fix declarations of variable ht_expired_cell

Hugh Waite hugh.waite at acision.com
Wed Sep 3 12:50:17 CEST 2014


Module: sip-router
Branch: master
Commit: 9f3cad7fbd74bf45c242bc6f587dce96c796fcc1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9f3cad7fbd74bf45c242bc6f587dce96c796fcc1

Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date:   Wed Sep  3 11:42:58 2014 +0100

htable: Fix declarations of variable ht_expired_cell

- Removed unused extern delaration in htable.c
- Reported by Ovidiu Sas

---

 modules/htable/ht_var.c |    2 +-
 modules/htable/htable.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/htable/ht_var.c b/modules/htable/ht_var.c
index 5f8c043..50901d3 100644
--- a/modules/htable/ht_var.c
+++ b/modules/htable/ht_var.c
@@ -26,7 +26,7 @@
 
 /* pkg copy */
 ht_cell_t *_htc_local=NULL;
-ht_cell_t *ht_expired_cell;
+extern ht_cell_t *ht_expired_cell;
 
 int pv_get_ht_cell(struct sip_msg *msg,  pv_param_t *param,
 		pv_value_t *res)
diff --git a/modules/htable/htable.c b/modules/htable/htable.c
index 747fb0f..0dfdcda 100644
--- a/modules/htable/htable.c
+++ b/modules/htable/htable.c
@@ -52,7 +52,6 @@ MODULE_VERSION
 int  ht_timer_interval = 20;
 int  ht_db_expires_flag = 0;
 int  ht_enable_dmq = 0;
-extern ht_cell_t *ht_expired_cell;
 
 static int htable_init_rpc(void);
 




More information about the sr-dev mailing list