torrentd

simple torrent daemon
git clone git://git.2f30.org/torrentd
Log | Files | Refs | LICENSE

commit 17e8cfe7533bac039bb26f638764132ea432ecbc
parent 96de6a4c1d694bebc2eed373b2b37aa9539da052
Author: sin <sin@2f30.org>
Date:   Sat, 26 Dec 2015 12:19:03 +0000

style fix

Diffstat:
Mtracker.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tracker.c b/tracker.c @@ -128,8 +128,7 @@ getpeers(struct torrent *t) curl_easy_setopt(curl, CURLOPT_URL, buf); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writefn); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &reply); - res = curl_easy_perform(curl); - if (res == CURLE_OK) { + if ((res = curl_easy_perform(curl)) == CURLE_OK) { if (parsepeers(t, &reply) < 0) { curl_free(infohash); curl_free(id);