Module: kamailio
Branch: master
Commit: beffbad6d0a727232599ec6d15a0d7c6c37d6ddc
URL:
https://github.com/kamailio/kamailio/commit/beffbad6d0a727232599ec6d15a0d7c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-14T14:33:36+02:00
cfg_rpc: cast void* for set-int to avoid compiler warnings in reset command
---
Modified: src/modules/cfg_rpc/cfg_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/beffbad6d0a727232599ec6d15a0d7c…
Patch:
https://github.com/kamailio/kamailio/commit/beffbad6d0a727232599ec6d15a0d7c…
---
diff --git a/src/modules/cfg_rpc/cfg_rpc.c b/src/modules/cfg_rpc/cfg_rpc.c
index 06e775c5c1..18c16c8733 100644
--- a/src/modules/cfg_rpc/cfg_rpc.c
+++ b/src/modules/cfg_rpc/cfg_rpc.c
@@ -403,7 +403,7 @@ static void rpc_reset(rpc_t* rpc, void* c)
}
if (input_type == CFG_INPUT_INT)
- cfg_set_now_int(ctx, &gname, group_id, &var, val);
+ cfg_set_now_int(ctx, &gname, group_id, &var, (int)(long)val);
else if (input_type == CFG_INPUT_STRING)
cfg_set_now_string(ctx, &gname, group_id, &var, val);
}