projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
recent version of libjson has remove is_error which was checking
[ptask.git]
/
src
/
tw.c
diff --git
a/src/tw.c
b/src/tw.c
index
2a81754
..
89343a4
100644
(file)
--- a/
src/tw.c
+++ b/
src/tw.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2012-201
3
jeanfi@gmail.com
+ * Copyright (C) 2012-201
6
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
*
* 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.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;
return 1;
+ else
+ return 0;
}
static char *tw_exec(char *opts)
}
static char *tw_exec(char *opts)
@@
-162,9
+163,6
@@
static struct json_object *task_exec_json(const char *opts)
free(cmd);
free(cmd);
- if (o && is_error(o))
- return NULL;
-
return o;
}
return o;
}