commit f55f42bdfc13d22b995289b666a30612469fcdf6
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Mar 9 15:56:52 2014 +0100
don't bother checking impossible condition
the config readear already verified that at least host or tunnel are
set.
src/compat/config.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/compat/config.c b/src/compat/config.c
index bcbe214..d17eaa7 100644
--- a/src/compat/config.c
+++ b/src/compat/config.c
@@ -245,7 +245,7 @@ write_imap_server( FILE *fp, config_t *cfg )
if (cfg->tunnel)
nfasprintf( (char **)&cfg->old_server_name, "tunnel%d",
++tunnels );
- else if (cfg->host) {
+ else {
if (sscanf( cfg->host, "%d.%d.%d.%d", &a1, &a2, &a3, &a4 ) == 4)
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host );
else {
@@ -269,9 +269,6 @@ write_imap_server( FILE *fp, config_t *cfg )
cfg->old_server_name = nfstrdup( buf );
cfg->old_servers = 1;
gotsrv: ;
- } else {
- fprintf( stderr, "ERROR: Neither host nor tunnel specified for
mailbox %s.\n", cfg->path );
- exit( 1 );
}
if (cfg->user)
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel