summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-08 10:38:02 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:52:51 +0200
commit18cc036b38bb207c7298ca3d4fc78be55fe87e39 (patch)
treefcb9a024bd0982352344621b8abd0c918eb522a9
parentbb223de50300ff4fcf2e7063bdf5e64334cf26fb (diff)
Use a boolean to set if api is internal
Use a boolean to set if api is internal. Change-Id: Ife5b8e052cf416205aca73c270bfb4b131be3656 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c2
-rw-r--r--4a-hal/4a-hal-utilities/4a-hal-utilities-data.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
index e11f989..403b934 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
@@ -90,7 +90,7 @@ static int HalCtlsInitOneApi(AFB_ApiT apiHandle)
return -3;
// Fill SpecificHalDatadata structure
- currentCtlHalData->internal = (unsigned int) true;
+ currentCtlHalData->internal = true;
currentCtlHalData->apiName = (char *) ctrlConfig->api;
currentCtlHalData->sndCard = (char *) ctrlConfig->uid;
diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
index b255bd8..53a8f69 100644
--- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
+++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
@@ -19,6 +19,7 @@
#define _HAL_UTILITIES_DATA_INCLUDE_
#include <stdio.h>
+#include <stdbool.h>
#include <wrap-json.h>
@@ -67,7 +68,7 @@ struct SpecificHalData {
char *sndCard;
int sndCardId;
char *info;
- unsigned int internal;
+ bool internal;
char *author;
char *version;