From f3048dc97316ede624764c7b6c8dadf4ede71b35 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Tue, 30 Oct 2018 10:54:02 +0100 Subject: [PATCH] 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 --- bindings/samples/AuthLogin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.16.6