libeech

BitTorrent library
git clone git://z3bra.org/libeech.git
Log | Files | Refs | README | LICENSE

commit a9cf1902aadd303a909d2f09d434b4d936b8cc90
parent 586e58d4469b1212bcd72ca83d546f3b3437380f
Author: z3bra <contactatz3bradotorg>
Date:   Wed Jul  4 00:37:25 +0200

pwptxhv(): pass piece number as long

Diffstat:
libeech.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libeech.c b/libeech.c @@ -74,7 +74,7 @@ static ssize_t pwprecv(struct peer *); static ssize_t pwpsend(struct peer *, char *, size_t); static ssize_t pwptxst(struct peer *, int); -static ssize_t pwptxhv(struct peer *, int); +static ssize_t pwptxhv(struct peer *, long); static ssize_t pwptxbf(struct torrent *, struct peer *); static ssize_t pwptxrq(struct torrent *, struct peer *); @@ -485,7 +485,7 @@ pwptxst(struct peer *p, int t) } static ssize_t -pwptxhv(struct peer *p, int n) +pwptxhv(struct peer *p, long n) { char m[MSGSIZ];