isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 256a147945317cf6f42c8f99e9c92e8939c80ce9
parent 96eaeb428daad3c2cef5a1d5db16bedcfe9aa639
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 13 Mar 2011 15:03:59 +0100

compile with -ansi -pedantic on gcc

greatly helps portability ...

Diffstat:
Mconfigure.in | 2+-
Msrc/drv_imap.c | 12++++++------
Msrc/mdconvert.c | 2+-
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/configure.in b/configure.in @@ -6,7 +6,7 @@ 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" fi CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -160,24 +160,24 @@ struct imap_cmd_refcounted { enum CAPABILITY { NOLOGIN = 0, - UIDPLUS, - LITERALPLUS, - NAMESPACE, #ifdef HAVE_LIBSSL CRAM, STARTTLS, #endif + UIDPLUS, + LITERALPLUS, + NAMESPACE }; static const char *cap_list[] = { "LOGINDISABLED", - "UIDPLUS", - "LITERAL+", - "NAMESPACE", #ifdef HAVE_LIBSSL "AUTH=CRAM-MD5", "STARTTLS", #endif + "UIDPLUS", + "LITERAL+", + "NAMESPACE" }; #define RESP_OK 0 diff --git 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;