diff options
author | Xorg | 2018-01-05 19:37:28 +0100 |
---|---|---|
committer | Xorg | 2018-01-05 19:37:36 +0100 |
commit | 5b288ca698d37289e75866c69783553b2b96114e (patch) | |
tree | 02facb655a1691148fdcffac99a92a9d9e88f1b8 /is_error.patch | |
parent | 8e70c4661e736bf335e8b0fbf513b7ec91f9cb1a (diff) | |
download | aur-5b288ca698d37289e75866c69783553b2b96114e.tar.gz |
Fix undefined reference to 'is_error' (pkgrel 2)
Diffstat (limited to 'is_error.patch')
-rw-r--r-- | is_error.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/is_error.patch b/is_error.patch new file mode 100644 index 000000000000..60aaa2d076eb --- /dev/null +++ b/is_error.patch @@ -0,0 +1,26 @@ +--- a/src/rsensor.c 2016-12-20 00:39:54.000000000 +0100 ++++ b/src/rsensor.c 2018-01-05 19:30:09.089759050 +0100 +@@ -133,7 +133,7 @@ + + obj = get_json_object(url); + +- if (obj && !is_error(obj)) { ++ if (obj && (obj != NULL)) { + n = json_object_array_length(obj); + sensors = malloc((n + 1) * sizeof(struct psensor *)); + +@@ -168,12 +168,12 @@ + + obj = get_json_object(get_url(s)); + +- if (obj && !is_error(obj)) { ++ if (obj && (obj != NULL)) { + json_object *om; + + json_object_object_get_ex(obj, "last_measure", &om); + +- if (!is_error(obj)) { ++ if (obj != NULL) { + json_object *ov, *ot; + struct timeval tv; + |