torrentd

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

commit e33b18d011bf61e0eafad98edd381a9544f91a6d
parent 9309cc553bcbeea4432c7609175dc5960deae133
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 18 Dec 2015 21:06:59 +0100

exit(1) when loadtorrent failed for now

Diffstat:
Msbtd.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sbtd.c b/sbtd.c @@ -34,7 +34,8 @@ main(int argc, char *argv[]) if (argc != 2) usage(argv[0]); - t = loadtorrent(argv[1]); + if (!(t = loadtorrent(argv[1]))) + exit(1); dumptorrent(t); unloadtorrent(t); exit(0);