scp.c: u_int64_t in bwlimit()

Tim Rice tim at multitalents.net
Mon Mar 17 11:27:31 EST 2003


u_int64_t has been introduced into scp.c with the new bwlimit
function causing some platforms to break.

Would this work?

-----------------------------------
--- scp.c.old	2003-03-09 17:16:43.000000000 -0800
+++ scp.c	2003-03-16 16:17:57.095520029 -0800
@@ -670,7 +670,7 @@
 {
 	static struct timeval bwstart, bwend;
 	static int lamt, thresh = 16384;
-	u_int64_t wait;
+	off_t wait;
 	struct timespec ts, rm;
 
 	if (!timerisset(&bwstart)) {
-----------------------------------

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net




More information about the openssh-unix-dev mailing list