[BACK]Return to progressmeter.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/progressmeter.c between version 1.11 and 1.12

version 1.11, 2003/07/30 07:44:14 version 1.12, 2003/07/30 07:53:27
Line 62 
Line 62 
         return (getpgrp() == tcgetpgrp(STDOUT_FILENO));          return (getpgrp() == tcgetpgrp(STDOUT_FILENO));
 }  }
   
   
 static void  static void
 format_size(char *buf, int size, off_t bytes)  format_size(char *buf, int size, off_t bytes)
 {  {
Line 217 
Line 216 
         } else          } else
                 win_size = DEFAULT_WINSIZE;                  win_size = DEFAULT_WINSIZE;
         win_size += 1;                                  /* trailing \0 */          win_size += 1;                                  /* trailing \0 */
   
         if (can_output())          if (can_output())
                 refresh_progress_meter();                  refresh_progress_meter();
   
Line 236 
Line 235 
         /* Ensure we complete the progress */          /* Ensure we complete the progress */
         if (cur_pos != end_pos)          if (cur_pos != end_pos)
                 refresh_progress_meter();                  refresh_progress_meter();
   
         atomicio(vwrite, STDOUT_FILENO, "\n", 1);          atomicio(vwrite, STDOUT_FILENO, "\n", 1);
 }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12