Module: kamailio
Branch: master
Commit: 5411eda4e44a487479d00433583a68a328aca9a3
URL:
https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-19T16:57:29+01:00
cfgutils: use same type for local variable in rpc gflags functions
---
Modified: src/modules/cfgutils/cfgutils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a…
Patch:
https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a…
---
diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index 22d2250003..7be7181d82 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -301,7 +301,7 @@ void cfgutils_rpc_set_gflag(rpc_t* rpc, void* ctx)
void cfgutils_rpc_reset_gflag(rpc_t* rpc, void* ctx)
{
- long int flag;
+ unsigned int flag;
if(rpc->scan(ctx, "d", (int*)(&flag))<1) {
LM_WARN("no parameters\n");
rpc->fault(ctx, 500, "Invalid Parameters");
@@ -314,7 +314,7 @@ void cfgutils_rpc_reset_gflag(rpc_t* rpc, void* ctx)
void cfgutils_rpc_is_gflag(rpc_t* rpc, void* ctx)
{
- long int flag;
+ unsigned int flag;
if(rpc->scan(ctx, "d", (int*)(&flag))<1) {
LM_WARN("no parameters\n");
rpc->fault(ctx, 500, "Invalid Parameters");
@@ -328,7 +328,7 @@ void cfgutils_rpc_is_gflag(rpc_t* rpc, void* ctx)
void cfgutils_rpc_get_gflags(rpc_t* rpc, void* ctx)
{
- static unsigned int flags;
+ unsigned int flags;
flags = *gflags;