Module: kamailio
Branch: master
Commit: cb4f97b4eb985727182c0ce8f595d3affe663cff
URL:
https://github.com/kamailio/kamailio/commit/cb4f97b4eb985727182c0ce8f595d3a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-16T11:03:14+02:00
sipdump: fixed compile warnings on unused variables
- reported by Juha Heinanen
---
Modified: src/modules/sipdump/sipdump_mod.c
Modified: src/modules/sipdump/sipdump_write.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cb4f97b4eb985727182c0ce8f595d3a…
Patch:
https://github.com/kamailio/kamailio/commit/cb4f97b4eb985727182c0ce8f595d3a…
---
diff --git a/src/modules/sipdump/sipdump_mod.c b/src/modules/sipdump/sipdump_mod.c
index cb8651e0b0..4f1e83b5f8 100644
--- a/src/modules/sipdump/sipdump_mod.c
+++ b/src/modules/sipdump/sipdump_mod.c
@@ -121,7 +121,6 @@ static int mod_init(void)
*/
static int child_init(int rank)
{
- int i;
if(rank != PROC_MAIN)
return 0;
@@ -129,7 +128,7 @@ static int child_init(int rank)
if(fork_basic_utimer(PROC_TIMER, "SIPDUMP WRITE TIMER", 1 /*socks flag*/,
sipdump_timer_exec, NULL, sipdump_wait /*usec*/)
< 0) {
- LM_ERR("failed to register timer routine as process (%d)\n", i);
+ LM_ERR("failed to register timer routine as process\n");
return -1; /* error */
}
diff --git a/src/modules/sipdump/sipdump_write.c b/src/modules/sipdump/sipdump_write.c
index 8d8c890721..4a566e9ff5 100644
--- a/src/modules/sipdump/sipdump_write.c
+++ b/src/modules/sipdump/sipdump_write.c
@@ -152,6 +152,7 @@ static int sipdump_rotate_file(void)
"%d-%02d-%02d--%02d-%02d-%02d.data",
1900+ti->tm_year, ti->tm_mon, ti->tm_mday,
ti->tm_hour, ti->tm_min, ti->tm_sec);
+ LM_DBG("writing to file: %s (%d)\n", _sipdump_fpath, n);
_sipdump_file = fopen( _sipdump_fpath , "w" );
if(_sipdump_file==NULL) {
LM_ERR("failed to open file %s\n", _sipdump_fpath);