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

Diff for /src/usr.bin/ftp/ftp.c between version 1.6 and 1.7

version 1.6, 1996/10/31 14:36:56 version 1.7, 1996/11/09 19:57:46
Line 451 
Line 451 
         longjmp(sendabort, 1);          longjmp(sendabort, 1);
 }  }
   
 #define HASHBYTES 1024  
   
 void  void
 sendrequest(cmd, local, remote, printnames)  sendrequest(cmd, local, remote, printnames)
         char *cmd, *local, *remote;          char *cmd, *local, *remote;
Line 464 
Line 462 
         FILE *fin, *dout = 0, *popen();          FILE *fin, *dout = 0, *popen();
         int (*closefunc) __P((FILE *));          int (*closefunc) __P((FILE *));
         sig_t oldintr, oldintp;          sig_t oldintr, oldintp;
         long bytes = 0, hashbytes = HASHBYTES;          long bytes = 0, hashbytes = mark;
         char *lmode, buf[BUFSIZ], *bufp;          char *lmode, buf[BUFSIZ], *bufp;
   
         if (verbose && printnames) {          if (verbose && printnames) {
Line 608 
Line 606 
                         if (hash) {                          if (hash) {
                                 while (bytes >= hashbytes) {                                  while (bytes >= hashbytes) {
                                         (void) putchar('#');                                          (void) putchar('#');
                                         hashbytes += HASHBYTES;                                          hashbytes += mark;
                                 }                                  }
                                 (void) fflush(stdout);                                  (void) fflush(stdout);
                         }                          }
                 }                  }
                 if (hash && bytes > 0) {                  if (hash && bytes > 0) {
                         if (bytes < HASHBYTES)                          if (bytes < mark)
                                 (void) putchar('#');                                  (void) putchar('#');
                         (void) putchar('\n');                          (void) putchar('\n');
                         (void) fflush(stdout);                          (void) fflush(stdout);
Line 634 
Line 632 
                                 while (hash && (bytes >= hashbytes)) {                                  while (hash && (bytes >= hashbytes)) {
                                         (void) putchar('#');                                          (void) putchar('#');
                                         (void) fflush(stdout);                                          (void) fflush(stdout);
                                         hashbytes += HASHBYTES;                                          hashbytes += mark;
                                 }                                  }
                                 if (ferror(dout))                                  if (ferror(dout))
                                         break;                                          break;
Line 721 
Line 719 
         int c, d, is_retr, tcrflag, bare_lfs = 0;          int c, d, is_retr, tcrflag, bare_lfs = 0;
         static int bufsize;          static int bufsize;
         static char *buf;          static char *buf;
         long bytes = 0, hashbytes = HASHBYTES;          long bytes = 0, hashbytes = mark;
         struct timeval start, stop;          struct timeval start, stop;
         struct stat st;          struct stat st;
   
Line 876 
Line 874 
                         if (hash) {                          if (hash) {
                                 while (bytes >= hashbytes) {                                  while (bytes >= hashbytes) {
                                         (void) putchar('#');                                          (void) putchar('#');
                                         hashbytes += HASHBYTES;                                          hashbytes += mark;
                                 }                                  }
                                 (void) fflush(stdout);                                  (void) fflush(stdout);
                         }                          }
                 }                  }
                 if (hash && bytes > 0) {                  if (hash && bytes > 0) {
                         if (bytes < HASHBYTES)                          if (bytes < mark)
                                 (void) putchar('#');                                  (void) putchar('#');
                         (void) putchar('\n');                          (void) putchar('\n');
                         (void) fflush(stdout);                          (void) fflush(stdout);
Line 928 
Line 926 
                                 while (hash && (bytes >= hashbytes)) {                                  while (hash && (bytes >= hashbytes)) {
                                         (void) putchar('#');                                          (void) putchar('#');
                                         (void) fflush(stdout);                                          (void) fflush(stdout);
                                         hashbytes += HASHBYTES;                                          hashbytes += mark;
                                 }                                  }
                                 bytes++;                                  bytes++;
                                 if ((c = getc(din)) != '\n' || tcrflag) {                                  if ((c = getc(din)) != '\n' || tcrflag) {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7