[sr-dev] git:master:61b67197: janssonrpcc: remove compilation warning
Victor Seva
linuxmaniac at torreviejawireless.org
Wed May 15 11:15:40 CEST 2019
Module: kamailio
Branch: master
Commit: 61b67197ba8b996abdaff1388362469563ba2202
URL: https://github.com/kamailio/kamailio/commit/61b67197ba8b996abdaff1388362469563ba2202
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at 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/61b67197ba8b996abdaff1388362469563ba2202.diff
Patch: https://github.com/kamailio/kamailio/commit/61b67197ba8b996abdaff1388362469563ba2202.patch
---
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;
}
More information about the sr-dev
mailing list