]> sjero.net Git - wget/blobdiff - src/progress.c
[svn] Constify variable.
[wget] / src / progress.c
index b675bbf196a64f0dd454bdbd5cb00ceb801dcc9a..613162fe9496aa87f8f8088f2cabe5aca15042ad 100644 (file)
@@ -76,7 +76,7 @@ static int current_impl_locked;
 
 #define DEFAULT_PROGRESS_IMPLEMENTATION "bar"
 
-/* Fallnback progress implementation should be something that works
+/* Fallback progress implementation should be something that works
    under all display types.  If you put something other than "dot"
    here, remember that bar_set_params tries to switch to this if we're
    not running on a TTY.  So changing this to "bar" could cause
@@ -108,7 +108,7 @@ set_progress_implementation (const char *name)
 {
   int i, namelen;
   struct progress_implementation *pi = implementations;
-  char *colon;
+  const char *colon;
 
   if (!name)
     name = DEFAULT_PROGRESS_IMPLEMENTATION;
@@ -880,7 +880,7 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
 
          /* Translation note: "ETA" is English-centric, but this must
             be short, ideally 3 chars.  Abbreviate if necessary.  */
-         sprintf (p, "  eta %s", eta_to_human_short (eta));
+         sprintf (p, _("  eta %s"), eta_to_human_short (eta));
          move_to_end (p);
        }
       else if (bp->total_length > 0)