commit c938ebdd227d429ee375231c5462d299b33ac036
Author: Oswald Buddenhagen <o...@kde.org>
Date:   Sun Mar 13 15:03:59 2011 +0100

    compile with -ansi -pedantic on gcc
    
    greatly helps portability ...

 configure.in    |    3 ++-
 src/drv_imap.c  |   12 ++++++------
 src/mdconvert.c |    2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/configure.in b/configure.in
index c0dbaa7..1849994 100644
--- a/configure.in
+++ b/configure.in
@@ -6,7 +6,8 @@ AM_MAINTAINER_MODE
 
 AM_PROG_CC_STDC
 if test "$GCC" = yes; then
-    CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes"
+    CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -ansi 
-pedantic -Wno-overlength-strings"
+    CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE"
 fi
 
 AC_CHECK_HEADERS([sys/filio.h])
diff --git a/src/drv_imap.c b/src/drv_imap.c
index 1dd6f0f..e0df3c6 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -146,24 +146,24 @@ struct imap_cmd_refcounted {
 
 enum CAPABILITY {
        NOLOGIN = 0,
-       UIDPLUS,
-       LITERALPLUS,
-       NAMESPACE,
 #if HAVE_LIBSSL
        CRAM,
        STARTTLS,
 #endif
+       UIDPLUS,
+       LITERALPLUS,
+       NAMESPACE
 };
 
 static const char *cap_list[] = {
        "LOGINDISABLED",
-       "UIDPLUS",
-       "LITERAL+",
-       "NAMESPACE",
 #if HAVE_LIBSSL
        "AUTH=CRAM-MD5",
        "STARTTLS",
 #endif
+       "UIDPLUS",
+       "LITERAL+",
+       "NAMESPACE"
 };
 
 #define RESP_OK       0
diff --git a/src/mdconvert.c b/src/mdconvert.c
index a6b2ea3..c2fbf25 100644
--- a/src/mdconvert.c
+++ b/src/mdconvert.c
@@ -54,7 +54,7 @@ static const char *subdirs[] = { "cur", "new" };
 static struct flock lck;
 static DBT key, value;
 
-static inline int
+static int
 convert( const char *box, int altmap )
 {
        DB *db;

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to