aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-10-30 10:54:02 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-10-30 16:39:55 +0100
commitf3048dc97316ede624764c7b6c8dadf4ede71b35 (patch)
tree15d731339a7fc520989a069d4f1ae7bc4e9373eb /bindings
parent68fb4de4c809825670818a9360c98f62c947c2ed (diff)
samples: Fix compiling error
Latest versions of libraries used doesn't define TRUE. This fix it by using 1 instead. Change-Id: I17db5ca34aeceab96c83143f49094fbaca74a95a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/samples/AuthLogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/samples/AuthLogin.c b/bindings/samples/AuthLogin.c
index 0f29dd0d..dcb5e576 100644
--- a/bindings/samples/AuthLogin.c
+++ b/bindings/samples/AuthLogin.c
@@ -71,7 +71,7 @@ static void clientContextRefresh (afb_req_t request) {
static void clientContextCheck (afb_req_t request) {
json_object *jresp = json_object_new_object();
- json_object_object_add(jresp, "isvalid", json_object_new_boolean (TRUE));
+ json_object_object_add(jresp, "isvalid", json_object_new_boolean (1));
afb_req_success(request, jresp, NULL);
}