summaryrefslogtreecommitdiffstats
path: root/lib/4a-hal-utilities/4a-hal-utilities-data.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-18 11:21:04 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-05-24 16:29:12 +0200
commit701bea793ed1d2e20d036957268a71973c975cda (patch)
treee11453562495478d0b98462e9f5c7746c611aa33 /lib/4a-hal-utilities/4a-hal-utilities-data.c
parent9f9650031fcbea8401d64609778cef1b7c252990 (diff)
Correct mistakes due to use of unsigned returns
Correct mistakes due to use of unsigned returns. Also, simplify use of int by replacing 'int8_t' and 'int64_t' types by plain 'int' type. BUG-AGL: SPEC-2329 Change-Id: I24fe273c5a233762c072f7bc9e79eab32a1c824c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'lib/4a-hal-utilities/4a-hal-utilities-data.c')
-rw-r--r--lib/4a-hal-utilities/4a-hal-utilities-data.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.c b/lib/4a-hal-utilities/4a-hal-utilities-data.c
index 215adb2..1e20c59 100644
--- a/lib/4a-hal-utilities/4a-hal-utilities-data.c
+++ b/lib/4a-hal-utilities/4a-hal-utilities-data.c
@@ -60,7 +60,7 @@ struct InternalHalMixerData *HalUtlAddMixerDataToMixerDataList(struct InternalHa
return currentMixerData;
}
-int8_t HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, struct InternalHalMixerData *mixerDataToRemove)
+int HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, struct InternalHalMixerData *mixerDataToRemove)
{
struct InternalHalMixerData *currentMixerData, *matchingMixerData;
@@ -94,9 +94,9 @@ int8_t HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList
return 0;
}
-int64_t HalUtlRemoveAllMixerData(struct InternalHalMixerData **mixerDataList)
+int HalUtlRemoveAllMixerData(struct InternalHalMixerData **mixerDataList)
{
- int64_t mixerDataRemoved = 0;
+ int mixerDataRemoved = 0;
if(! mixerDataList)
return -1;
@@ -111,9 +111,9 @@ int64_t HalUtlRemoveAllMixerData(struct InternalHalMixerData **mixerDataList)
return mixerDataRemoved;
}
-int64_t HalUtlGetNumberOfMixerDataInList(struct InternalHalMixerData **mixerDataList)
+int HalUtlGetNumberOfMixerDataInList(struct InternalHalMixerData **mixerDataList)
{
- int64_t numberOfMixerData = 0;
+ int numberOfMixerData = 0;
struct InternalHalMixerData *currentMixerData;
if(! mixerDataList)
@@ -181,7 +181,7 @@ struct HalData *HalUtlAddHalToHalList(struct HalData **halDataList)
return currentHalData;
}
-int8_t HalUtlRemoveSelectedHalFromList(struct HalData **halDataList, struct HalData *halToRemove)
+int HalUtlRemoveSelectedHalFromList(struct HalData **halDataList, struct HalData *halToRemove)
{
struct HalData *currentHalData, *matchingHal;
@@ -231,9 +231,9 @@ int8_t HalUtlRemoveSelectedHalFromList(struct HalData **halDataList, struct HalD
return 0;
}
-int64_t HalUtlRemoveAllHalFromList(struct HalData **halDataList)
+int HalUtlRemoveAllHalFromList(struct HalData **halDataList)
{
- int64_t halRemoved = 0;
+ int halRemoved = 0;
if(! halDataList)
return -1;
@@ -248,9 +248,9 @@ int64_t HalUtlRemoveAllHalFromList(struct HalData **halDataList)
return halRemoved;
}
-int64_t HalUtlGetNumberOfHalInList(struct HalData **halDataList)
+int HalUtlGetNumberOfHalInList(struct HalData **halDataList)
{
- int64_t numberOfHal = 0;
+ int numberOfHal = 0;
struct HalData *currentHalData;
if(! halDataList)
@@ -305,7 +305,7 @@ struct HalData *HalUtlSearchReadyHalDataByCardId(struct HalData **halDataList, i
* Hal Manager data handling functions *
******************************************************************************/
-uint8_t HalUtlInitializeHalMgrData(afb_api_t apiHandle, struct HalMgrData *halMgrData, char *apiName, char *info)
+int HalUtlInitializeHalMgrData(afb_api_t apiHandle, struct HalMgrData *halMgrData, char *apiName, char *info)
{
if(! apiHandle || ! halMgrData || ! apiName || ! info)
return -1;