From ceeab7f6ad5e21a172bdfeb42b9f4f051a1e6f79 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 22 Sep 2011 22:46:47 +1100 Subject: [PATCH] * fixed code style --- src/json2torrent.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/json2torrent.c b/src/json2torrent.c index 3ebe3c8..a6e58a4 100644 --- a/src/json2torrent.c +++ b/src/json2torrent.c @@ -19,10 +19,7 @@ struct yajl_gen_t *gen = NULL; static int write_integer(void *ctx, long long l) -{ - fprintf(out, "i%llie", l); - return 1; -} +{ return (fprintf(out, "i%llie", l) > 0 ? 1 : 0); } static int write_dict_start(void *ctx)