]> sjero.net Git - wget/blobdiff - src/convert.c
[svn] Timer code update.
[wget] / src / convert.c
index 021e8d48af4845a73230c833dfa712bc21ba68b2..ca9e36b8e2359f87b22a5e5110ea5405059eb57c 100644 (file)
@@ -166,7 +166,8 @@ convert_all_links (void)
       free_urlpos (urls);
     }
 
-  msecs = wtimer_elapsed (timer);
+  wtimer_update (timer);
+  msecs = wtimer_read (timer);
   wtimer_delete (timer);
   logprintf (LOG_VERBOSE, _("Converted %d files in %.2f seconds.\n"),
             file_count, (double)msecs / 1000);
@@ -401,7 +402,7 @@ write_backup_file (const char *file, downloaded_file_t downloaded_file_return)
   /* Construct the backup filename as the original name plus ".orig". */
   size_t         filename_len = strlen(file);
   char*          filename_plus_orig_suffix;
-  boolean        already_wrote_backup_file = FALSE;
+  int            already_wrote_backup_file = 0;
   slist*         converted_file_ptr;
   static slist*  converted_files = NULL;
 
@@ -435,7 +436,7 @@ write_backup_file (const char *file, downloaded_file_t downloaded_file_return)
   while (converted_file_ptr != NULL)
     if (strcmp(converted_file_ptr->string, file) == 0)
       {
-       already_wrote_backup_file = TRUE;
+       already_wrote_backup_file = 1;
        break;
       }
     else