Module: kamailio
Branch: master
Commit: 61b67197ba8b996abdaff1388362469563ba2202
URL:
https://github.com/kamailio/kamailio/commit/61b67197ba8b996abdaff1388362469…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-05-15T11:13:17+02:00
janssonrpcc: remove compilation warning
janssonrpcc_mod.c:345:25: warning: comparison of
unsigned expression < 0 is always false [-Wtautological-compare]
if (jsonrpc_keep_alive < 0) {
~~~~~~~~~~~~~~~~~~ ^ ~
1 warning generated.
---
Modified: src/modules/janssonrpcc/janssonrpcc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/61b67197ba8b996abdaff1388362469…
Patch:
https://github.com/kamailio/kamailio/commit/61b67197ba8b996abdaff1388362469…
---
diff --git a/src/modules/janssonrpcc/janssonrpcc_mod.c
b/src/modules/janssonrpcc/janssonrpcc_mod.c
index 9076f4a543..bad41ca2c5 100644
--- a/src/modules/janssonrpcc/janssonrpcc_mod.c
+++ b/src/modules/janssonrpcc/janssonrpcc_mod.c
@@ -342,9 +342,7 @@ int parse_keep_alive_param(modparam_t type, void* val)
return -1;
}
jsonrpc_keep_alive = (int)(long)val;
- if (jsonrpc_keep_alive < 0) {
- jsonrpc_keep_alive = 0;
- }
+
INFO("jsonrpc_keep_alive set to %d\n", jsonrpc_keep_alive);
return 0;
}