Module: sip-router
Branch: master
Commit: 142eae1df4416122dc9e81c97d1fd4634e446a68
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=142eae1…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Oct 1 01:14:58 2009 +0200
avp_db(s): gcc 2.9x var decls. fixes
variable declarations must be at the beginning of the function and
not intercalated in the code.
---
modules_s/avp_db/extra_attrs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_s/avp_db/extra_attrs.c b/modules_s/avp_db/extra_attrs.c
index c90562b..19c8f93 100644
--- a/modules_s/avp_db/extra_attrs.c
+++ b/modules_s/avp_db/extra_attrs.c
@@ -447,6 +447,7 @@ static int avpdb_post_script_cb(struct sip_msg *msg, unsigned int flags, void *p
int init_extra_avp_locks()
{
int i;
+ registered_table_t *t = tables;
/* zero all 'lock counters' */
memset(lock_counters, 0, sizeof(lock_counters));
@@ -461,7 +462,6 @@ int init_extra_avp_locks()
}
/* initializes mutexes for extra AVPs */
- registered_table_t *t = tables;
i = 0;
while (t) {
t->group_mutex_idx = get_hash1_raw(t->table_name, strlen(t->table_name)) % LOCK_CNT;