Browse Source

jsonrpcs: cast to unsigned long, related to commit e624cbfa4b0df

Henning Westerholt 6 years ago
parent
commit
ea141f0a63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/jsonrpcs/jsonrpcs_mod.c

+ 1 - 1
src/modules/jsonrpcs/jsonrpcs_mod.c

@@ -1011,7 +1011,7 @@ static struct rpc_delayed_ctx* jsonrpc_delayed_ctx_new(jsonrpc_ctx_t* ctx)
 		return 0;
 	}
 	if(nj->valuestring!=NULL && strlen(nj->valuestring)>JSONRPC_ID_SIZE-1) {
-		LM_ERR("id attribute is too long (%lu/%d)\n", (long)strlen(nj->valuestring),
+		LM_ERR("id attribute is too long (%lu/%d)\n", (unsigned long)strlen(nj->valuestring),
 				JSONRPC_ID_SIZE);
 		return 0;
 	}