CVS commit by ossi: 

info() about opening of stores


  M +2 -0      isync.h   1.60
  M +7 -4      main.c   1.58
  M +1 -1      sync.c   1.79


--- isync/src/isync.h  #1.59:1.60
@@ -247,4 +247,6 @@ unsigned char arc4_getbyte( void );
 /* sync.c */
 
+extern const char *str_ms[2], *str_hl[2];
+
 #define SYNC_OK      0
 #define SYNC_FAIL    1

--- isync/src/main.c  #1.57:1.58
@@ -482,4 +482,5 @@ main( int argc, char **argv )
                merge_actions( chan, ops, XOP_HAVE_EXPUNGE, OP_EXPUNGE, 0 );
 
+               info( "Channel %s\n", chan->name );
                boxes[M] = boxes[S] = cboxes = 0;
                for (t = 0; t < 2; t++) {
@@ -488,9 +489,11 @@ main( int argc, char **argv )
                }
                for (t = 0; t < 2; t++)
-                       if (!ctx[t] && !(ctx[t] = driver[t]->open_store( 
chan->stores[t] ))) {
+                       if (!ctx[t]) {
+                               info( "Opening %s %s...\n", str_ms[t], 
chan->stores[t]->name );
+                               if (!(ctx[t] = driver[t]->open_store( 
chan->stores[t] ))) {
                                ret = 1;
                                goto next;
                        }
-               info( "Channel %s\n", chan->name );
+                       }
                if (list && multiple)
                        printf( "%s:\n", chan->name );

--- isync/src/sync.c  #1.78:1.79
@@ -34,5 +34,5 @@
 #include <sys/stat.h>
 
-static const char *str_ms[] = { "master", "slave" }, *str_hl[] = { "push", 
"pull" };
+const char *str_ms[] = { "master", "slave" }, *str_hl[] = { "push", "pull" };
 
 void




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to