commit d0de47437f0242335c46d3ca9331af7ecf855e1f
parent b58f398bec3b6da03538fb6e7b38fea63e405642
Author: sin <sin@2f30.org>
Date: Mon, 21 Dec 2015 20:16:12 +0000
Rename to getpeers()
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/storrent.c b/storrent.c
@@ -23,7 +23,7 @@ main(int argc, char *argv[])
if (!(t = loadtorrent(argv[1])))
exit(1);
dumptorrent(t);
- tracker_get_peers(t, &peers);
+ getpeers(t, &peers);
unloadtorrent(t);
exit(0);
}
diff --git a/storrent.h b/storrent.h
@@ -57,7 +57,7 @@ int piecehash(struct torrent *, long long, uint8_t *);
char *peerid(void);
/* tracker.c */
-int tracker_get_peers(struct torrent *, struct ben **);
+int getpeers(struct torrent *, struct ben **);
/* util.c */
void *emalloc(size_t);
diff --git a/tracker.c b/tracker.c
@@ -7,7 +7,7 @@
#include "storrent.h"
int
-tracker_get_peers(struct torrent *t, struct ben **reply)
+getpeers(struct torrent *t, struct ben **reply)
{
char *url, *host, *port, *path;
char *infohash, *id;