Merge pull request #222 from mslehto/tautological-compare
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 25 Jun 2015 09:58:20 +0000 (11:58 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 25 Jun 2015 09:58:20 +0000 (11:58 +0200)
modules/[rls|presence_xml]: fixes warning [-Wtautological-compare]

1  2 
modules/rls/rls.c

diff --combined modules/rls/rls.c
@@@ -1,4 -1,6 +1,4 @@@
  /*
 - * $Id: rls.c 2230 2007-06-06 07:13:20Z anca_vamanu $
 - *
   * rls module - resource list server
   *
   * Copyright (C) 2007 Voice Sistem S.R.L.
@@@ -19,6 -21,9 +19,6 @@@
   * along with this program; if not, write to the Free Software 
   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
   *
 - * History:
 - * --------
 - *  2007-09-11  initial version (anca)
   */
  
  #include <stdio.h>
@@@ -333,7 -338,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;