X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.c;h=89343a45ea8c67504dc1930f9b7059682f3993de;hb=db9c7f7e2a7bebd83de857029942ddb5497140ec;hp=2a81754a074803093617d76dd940db61d5d0c825;hpb=1d479bf18659d6dcb4fefed032088bf4c56d24de;p=ptask.git diff --git a/src/tw.c b/src/tw.c index 2a81754..89343a4 100644 --- a/src/tw.c +++ b/src/tw.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2013 jeanfi@gmail.com + * Copyright (C) 2012-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -115,10 +115,11 @@ static int task_check_version() || !strcmp(ver, "2.0.0") || !strcmp(ver, "2.3.0") || !strcmp(ver, "2.4.0") - || !strcmp(ver, "2.4.1")) - return 0; - else + || !strcmp(ver, "2.4.1") + || !strcmp(ver, "2.5.0")) return 1; + else + return 0; } static char *tw_exec(char *opts) @@ -162,9 +163,6 @@ static struct json_object *task_exec_json(const char *opts) free(cmd); - if (o && is_error(o)) - return NULL; - return o; }