samples: Fix compiling error 17/17517/1
authorJose Bollo <jose.bollo@iot.bzh>
Tue, 30 Oct 2018 09:54:02 +0000 (10:54 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 30 Oct 2018 15:39:55 +0000 (16:39 +0100)
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>
bindings/samples/AuthLogin.c

index 0f29dd0..dcb5e57 100644 (file)
@@ -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);
 }