[sr-dev] git:master:7b6aba34: db_text: clean gcc warning
Victor Seva
linuxmaniac at torreviejawireless.org
Fri May 22 11:15:50 CEST 2015
Module: kamailio
Branch: master
Commit: 7b6aba346a8529187762c25f00609ec376fb3529
URL: https://github.com/kamailio/kamailio/commit/7b6aba346a8529187762c25f00609ec376fb3529
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at 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/7b6aba346a8529187762c25f00609ec376fb3529.diff
Patch: https://github.com/kamailio/kamailio/commit/7b6aba346a8529187762c25f00609ec376fb3529.patch
---
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;
More information about the sr-dev
mailing list