Explorar o código

Merge pull request #222 from mslehto/tautological-compare

modules/[rls|presence_xml]: fixes warning [-Wtautological-compare]
Daniel-Constantin Mierla %!s(int64=10) %!d(string=hai) anos
pai
achega
261a3464f0
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      modules/presence_xml/presence_xml.c
  2. 1 1
      modules/rls/rls.c

+ 1 - 1
modules/presence_xml/presence_xml.c

@@ -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");
 			goto error;

+ 1 - 1
modules/rls/rls.c

@@ -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");
 				return -1;