Fixed failing hunks.
[rsync/rsync-patches.git] / time-limit.diff
index 4658e87..6c5c259 100644 (file)
@@ -148,7 +148,7 @@ To use this patch, run these commands for a successful build:
       --write-batch=FILE      write a batched update to FILE
       --only-write-batch=FILE like --write-batch but w/o updating dest
       --read-batch=FILE       read a batched update from FILE
-@@ -1733,6 +1735,19 @@ transfer was too fast, it will wait befo
+@@ -1739,6 +1741,19 @@ transfer was too fast, it will wait befo
  result is an average transfer rate equaling the specified limit. A value
  of zero specifies no limit.
  
@@ -170,7 +170,7 @@ To use this patch, run these commands for a successful build:
  section for details, and also the bf(--only-write-batch) option.
 --- old/util.c
 +++ new/util.c
-@@ -121,6 +121,133 @@ NORETURN void overflow_exit(char *str)
+@@ -121,6 +121,133 @@ NORETURN void overflow_exit(const char *
        exit_cleanup(RERR_MALLOC);
  }
  
@@ -198,13 +198,13 @@ To use this patch, run these commands for a successful build:
 +      } else
 +              in_date = 1;
 +      for ( ; ; cp++) {
-+              if (!isdigit(*cp))
++              if (!isDigit(cp))
 +                      return -1;
 +
 +              n = 0;
 +              do {
 +                      n = n * 10 + *cp++ - '0';
-+              } while (isdigit(*cp));
++              } while (isDigit(cp));
 +
 +              if (*cp == ':')
 +                      in_date = 0;
@@ -301,6 +301,6 @@ To use this patch, run these commands for a successful build:
 +      return val;
 +}
 +
- int set_modtime(char *fname, time_t modtime, mode_t mode)
+ int set_modtime(const char *fname, time_t modtime, mode_t mode)
  {
  #if !defined HAVE_LUTIMES || !defined HAVE_UTIMES