modules/[rls|presence_xml]: fixes warning [-Wtautological-compare]
@@ -382,7 +382,7 @@ static int pxml_add_xcap_server( modparam_t type, void* val)
LM_ERR("while converting string to int\n");
goto error;
}
- if(port< 0 || port> 65535)
+ if(port< 1 || port> 65535)
{
LM_ERR("wrong port number\n");
@@ -333,7 +333,7 @@ static int mod_init(void)
port_str.len, port_str.s);
return -1;
- if(xcap_port< 0 || xcap_port> 65535)
+ if(xcap_port< 1 || xcap_port> 65535)
LM_ERR("wrong xcap server port\n");