commit 5d03247bec69fa525508801a4ce1a0ab88fc124a
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sat Sep 22 08:49:05 2007 +0000

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

 src/drv_imap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index 1e976f2..39663b8 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1244,11 +1244,11 @@ imap_open_store( store_conf_t *conf, store_t *oldctx )
                info( "ok\n" );
        } 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;
 
                info( "Resolving %s... ", srvc->host );

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to