Mercurial > dropbear
comparison scp.c @ 633:cf5a167776c3
Use "uint64_t" instead of "u_int64_t" since the Solaris doesn't have the
latter
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 07 Nov 2011 19:31:53 +0800 |
parents | 281ed8384eb4 |
children | 0ad95abf8d3c |
comparison
equal
deleted
inserted
replaced
632:abf040aedd44 | 633:cf5a167776c3 |
---|---|
771 void | 771 void |
772 bwlimit(int amount) | 772 bwlimit(int amount) |
773 { | 773 { |
774 static struct timeval bwstart, bwend; | 774 static struct timeval bwstart, bwend; |
775 static int lamt, thresh = 16384; | 775 static int lamt, thresh = 16384; |
776 u_int64_t waitlen; | 776 uint64_t waitlen; |
777 struct timespec ts, rm; | 777 struct timespec ts, rm; |
778 | 778 |
779 if (!timerisset(&bwstart)) { | 779 if (!timerisset(&bwstart)) { |
780 gettimeofday(&bwstart, NULL); | 780 gettimeofday(&bwstart, NULL); |
781 return; | 781 return; |