Module: kamailio
Branch: master
Commit: 7d810278ddca5671235672c85eb4da3520b02d2e
URL:
https://github.com/kamailio/kamailio/commit/7d810278ddca5671235672c85eb4da3…
Author: root <root(a)sbc001.mob1.jmfnetworks.net>
Committer: root <root(a)sbc001.mob1.jmfnetworks.net>
Date: 2016-01-22T11:26:04-06:00
statsc: fix compiler warnings: [-Wformat=] and [-Wunused-but-set-variable]
---
Modified: modules/statsc/statsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7d810278ddca5671235672c85eb4da3…
Patch:
https://github.com/kamailio/kamailio/commit/7d810278ddca5671235672c85eb4da3…
---
diff --git a/modules/statsc/statsc_mod.c b/modules/statsc/statsc_mod.c
index 8e15499..74ee5fe 100644
--- a/modules/statsc/statsc_mod.c
+++ b/modules/statsc/statsc_mod.c
@@ -244,7 +244,7 @@ void statsc_timer(unsigned int ticks, void *param)
_statsc_info->stable[0][n] = (int64_t)tn;
LM_DBG("statsc timer - time: %lu - ticks: %u - index: %d - steps: %llu\n",
- (unsigned long)tn, ticks, n, _statsc_info->steps);
+ (unsigned long)tn, ticks, n, (unsigned long long)_statsc_info->steps);
for(i=1; i<_statsc_info->slots; i++) {
_statsc_nmap[i].f(_statsc_nmap[i].p, _statsc_info->stable[i] + n);
@@ -271,7 +271,7 @@ static void statsc_rpc_exec(rpc_t* rpc, void* ctx)
str sname;
int range;
int sidx;
- int i, k, n, r, m, v;
+ int i, k, n, m, v;
time_t tn;
void* th;
void* ts;
@@ -345,7 +345,6 @@ static void statsc_rpc_exec(rpc_t* rpc, void* ctx)
return;
}
m = 0;
- r = range;
for(k=n; k>=0; k--) {
if(rpc->array_add(td, "{", &ti)<0) {
rpc->fault(ctx, 500, "Error creating rpc (5)");