File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929#include <stdbool.h>
3030#include <limits.h>
31+ #include <stdlib.h>
3132
3233#define MSCP_DIRECTION_L2R 1 /** Indicates local to remote copy */
3334#define MSCP_DIRECTION_R2L 2 /** Indicates remote to local copy */
Original file line number Diff line number Diff line change 99#include <semaphore.h>
1010
1111struct bwlimit {
12- sem_t * sem ; /* semaphore */
13- uint64_t bps ; /* limit bit-rate (bps) */
14- uint64_t win ; /* window size (msec) */
15- size_t amt ; /* amount of bytes can be sent in a window */
12+ sem_t * sem ; /* semaphore */
13+ size_t bps ; /* limit bit-rate (bps) */
14+ size_t win ; /* window size (msec) */
15+ size_t amt ; /* amount of bytes can be sent in a window */
1616
1717 ssize_t credit ; /* remaining bytes can be sent in a window */
1818 struct timespec wstart , wend ; /* window start time and end time */
You can’t perform that action at this time.
0 commit comments