- (djm) [scp.c] Rename limitbw -> limit_rate to match upstreamed patch
diff --git a/scp.c b/scp.c
index 10f6428..53172c1 100644
--- a/scp.c
+++ b/scp.c
@@ -92,7 +92,7 @@
arglist args;
/* Bandwidth limit */
-off_t limitbw = 0;
+off_t limit_rate = 0;
/* Name of current file being transferred. */
char *curfile;
@@ -257,7 +257,7 @@
speed = strtod(optarg, &endp);
if (speed <= 0 || *endp != '\0')
usage();
- limitbw = speed * 1024;
+ limit_rate = speed * 1024;
break;
case 'p':
pflag = 1;
@@ -589,7 +589,7 @@
haderr = result >= 0 ? EIO : errno;
statbytes += result;
}
- if (limitbw)
+ if (limit_rate)
bwlimit(amt);
}
if (showprogress)
@@ -681,7 +681,7 @@
return;
lamt *= 8;
- wait = (double)1000000L * lamt / limitbw;
+ wait = (double)1000000L * lamt / limit_rate;
bwstart.tv_sec = wait / 1000000L;
bwstart.tv_usec = wait % 1000000L;
@@ -908,7 +908,7 @@
statbytes += j;
} while (amt > 0);
- if (limitbw)
+ if (limit_rate)
bwlimit(4096);
if (count == bp->cnt) {