Diff
Not logged in

Differences From:

File src/sync.c part of check-in [f652599003] - Add the --proxy command-line option that can be used to enable or disable an http proxy on a case by case basis. by drh on 2008-05-06 12:24:22. [view]

To:

File src/sync.c part of check-in [908009fdc4] - Fix a couple of C++-isms in my_page.c and tagview.c. Remove the return value from autosync(). by drh on 2008-05-07 17:38:57. [view]

@@ -38,19 +38,18 @@
 
 /*
 ** If the respository is configured for autosyncing, then do an
 ** autosync.  This will be a pull if the argument is true or a push
-** if the argument is false.  Return true if the autosync is done
-** and false if autosync is not requested for the current repository.
+** if the argument is false.
 */
-int autosync(int flags){
+void autosync(int flags){
   const char *zUrl;
   if( db_get_boolean("autosync", 0)==0 ){
-    return 0;
+    return;
   }
   zUrl = db_get("last-sync-url", 0);
   if( zUrl==0 ){
-    return 0;  /* No default server */
+    return;  /* No default server */
   }
   url_parse(zUrl);
   if( g.urlIsFile ){
     return 0;  /* Network sync only */
@@ -61,9 +60,8 @@
     printf("Autosync:  http://%s%s\n", g.urlName, g.urlPath);
   }
   url_enable_proxy("via proxy: ");
   client_sync((flags & AUTOSYNC_PUSH)!=0, 1, 0);
-  return 1;
 }
 
 /*
 ** This routine processes the command-line argument for push, pull,