CVS commit by ossi: 

backport: don't use #ifdef inside htons() arguments - it can be a macro.


  M +3 -3      drv_imap.c   1.10.2.7


--- isync/src/drv_imap.c  #1.10.2.6:1.10.2.7
@@ -1245,9 +1245,9 @@ imap_open_store( store_conf_t *conf, sto
        } else {
                memset( &addr, 0, sizeof(addr) );
-               addr.sin_port = htons( srvc->port ? srvc->port :
+               addr.sin_port = srvc->port ? htons( srvc->port ) :
 #ifdef HAVE_LIBSSL
-                                      srvc->use_imaps ? 993 :
+                               srvc->use_imaps ? htons( 993 ) :
 #endif
-                                      143 );
+                               htons( 143 );
                addr.sin_family = AF_INET;
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to