Browse code

dmq_usrloc: cast param to int* to fix signness warning

Daniel-Constantin Mierla authored on 10/01/2020 09:17:18
Showing 1 changed files
... ...
@@ -351,7 +351,7 @@ static int usrloc_dmq_execute_action(srjson_t *jdoc_action, dmq_node_t* node) {
351 351
 			received.len = strlen(received.s);
352 352
 		} else if (_dmq_usrloc_replicate_socket_info==1 && strcmp(it->string, "sock")==0) {
353 353
 			if (parse_phostport( it->valuestring, &host.s, &host.len,
354
-			&port, &proto)!=0) {
354
+					(int*)&port, (int*)&proto)!=0) {
355 355
 				LM_ERR("bad socket <%s>\n", it->valuestring);
356 356
 				return 0;
357 357
 			}
... ...
@@ -391,7 +391,7 @@ static int usrloc_dmq_execute_action(srjson_t *jdoc_action, dmq_node_t* node) {
391 391
 			methods = SRJSON_GET_UINT(it);
392 392
 		} else if (strcmp(it->string, "reg_id")==0) {
393 393
 			reg_id = SRJSON_GET_UINT(it);
394
-                } else if (strcmp(it->string, "server_id")==0) {
394
+		} else if (strcmp(it->string, "server_id")==0) {
395 395
                         server_id = SRJSON_GET_UINT(it);
396 396
 		} else {
397 397
 			LM_ERR("unrecognized field in json object\n");