Module: sip-router
Branch: master
Commit: 1a8ce8fdc91f1708057430bcbe07b5edb656591a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1a8ce8f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Aug 26 21:51:41 2010 +0200
registrar(k): declare variables at function start
Fixes compilation with gcc < 3.0.
---
modules_k/registrar/reg_mod.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules_k/registrar/reg_mod.c b/modules_k/registrar/reg_mod.c
index 10e4362..239447e 100644
--- a/modules_k/registrar/reg_mod.c
+++ b/modules_k/registrar/reg_mod.c
@@ -241,6 +241,7 @@ static int mod_init(void)
pv_spec_t avp_spec;
str s;
bind_usrloc_t bind_usrloc;
+ qvalue_t dq;
#ifdef STATISTICS
@@ -326,7 +327,7 @@ static int mod_init(void)
}
/* Normalize default_q parameter */
- qvalue_t dq = cfg_get(registrar, registrar_cfg, default_q);
+ dq = cfg_get(registrar, registrar_cfg, default_q);
if ( dq!= Q_UNSPECIFIED) {
if (dq > MAX_Q) {
LM_DBG("default_q = %d, lowering to MAX_Q: %d\n", dq, MAX_Q);