libeech

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

commit f5efe190eced0897d976e704782ea3db3a4096a0
parent 8da0e6a47d6a1ef74286752a48fa0d67c33cfe34
Author: z3bra <contactatz3bradotorg>
Date:   Fri Nov  3 17:48:50 +0100

Make pwphs* functions static

Diffstat:
libeech.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libeech.c b/libeech.c @@ -30,9 +30,9 @@ static struct peer * delpeer(struct peer *, struct peer *); static int peercnt(struct peer *); /* handle peer wire protocol (PWP) messages */ -ssize_t pwphs(struct torrent *, struct peer *); -ssize_t pwphsrecv(struct peer *); -int pwphsck(struct torrent *, char *, long); +static ssize_t pwphs(struct torrent *, struct peer *); +static ssize_t pwphsrecv(struct peer *); +static int pwphsck(struct torrent *, char *, long); static char * peerid() @@ -250,7 +250,7 @@ peercnt(struct peer *pl) return (pl ? 1 : 0) + peercnt(pl->next); } -ssize_t +static ssize_t pwphs(struct torrent *t, struct peer *p) { char m[68]; @@ -264,7 +264,7 @@ pwphs(struct torrent *t, struct peer *p) return send(p->fd, m, 68, MSG_NOSIGNAL); } -ssize_t +static ssize_t pwphsrecv(struct peer *p) { ssize_t r; @@ -279,7 +279,7 @@ pwphsrecv(struct peer *p) return p->buflen; } -int +static int pwphsck(struct torrent *t, char *hs, long l) { if (l != 68)