tMake pwphs* functions static - libeech - bittorrent library
(HTM) git clone git://z3bra.org/libeech.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f5efe190eced0897d976e704782ea3db3a4096a0
(DIR) parent 8da0e6a47d6a1ef74286752a48fa0d67c33cfe34
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Fri, 3 Nov 2017 17:48:50 +0100
Make pwphs* functions static
Diffstat:
M libeech.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/libeech.c b/libeech.c
t@@ -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()
t@@ -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];
t@@ -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;
t@@ -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)