Module: kamailio
Branch: master
Commit: 7b6aba346a8529187762c25f00609ec376fb3529
URL:
https://github.com/kamailio/kamailio/commit/7b6aba346a8529187762c25f00609ec…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-05-21T21:24:39+02:00
db_text: clean gcc warning
dbt_raw_util.c:169:6: warning: unused variable ânâ [-Wunused-variable]
---
Modified: modules/db_text/dbt_raw_util.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7b6aba346a8529187762c25f00609ec…
Patch:
https://github.com/kamailio/kamailio/commit/7b6aba346a8529187762c25f00609ec…
---
diff --git a/modules/db_text/dbt_raw_util.c b/modules/db_text/dbt_raw_util.c
index 708a6bc..a35bacb 100644
--- a/modules/db_text/dbt_raw_util.c
+++ b/modules/db_text/dbt_raw_util.c
@@ -166,7 +166,7 @@ int dbt_build_where(char* where, db_key_t** _k, db_op_t** _o,
db_val_t** _v)
char** _o1 = NULL;
db_val_t* _v1 = NULL;
regmatch_t* matches = NULL;
- int n, l;
+ int l;
int len;
regex_t preg;
int offset = 0;
@@ -233,11 +233,11 @@ int dbt_build_where(char* where, db_key_t** _k, db_op_t** _o,
db_val_t** _v)
_v1[idx].val.str_val.s = pkg_malloc(l+1);
strncpy(_v1[idx].val.str_val.s, buffer+matches[5].rm_so, l);
}
-
-// for(n=0; n < MAX_MATCH; n++) {
-// LM_ERR("MATCH RESULT %d - %d,%d\n", n, matches[n].rm_so,
matches[n].rm_eo);
-// }
-
+/* int n;
+ for(n=0; n < MAX_MATCH; n++) {
+ LM_ERR("MATCH RESULT %d - %d,%d\n", n, matches[n].rm_so, matches[n].rm_eo);
+ }
+*/
if(matches[0].rm_eo != -1)
offset += matches[0].rm_eo;