Skip to content

Commit

Permalink
cfgutils: use same type for local variable in rpc gflags functions
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 19, 2020
1 parent c52e233 commit 5411eda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/cfgutils/cfgutils.c
Expand Up @@ -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");
Expand All @@ -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");
Expand All @@ -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;

Expand Down

0 comments on commit 5411eda

Please sign in to comment.