summaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-18 16:31:44 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-19 11:11:18 +0200
commit0c6d3da287a0f0d4e8a301f5464a94660d704e41 (patch)
tree1ce351e077f4939ab2d696d62a5aaaed39943844 /4a-hal/4a-hal-manager/4a-hal-manager-cb.c
parentc4325a7d128dffaf58695b67e5f74f2dc0c6bf5c (diff)
Rename misnamed var name in hal manager load func
Rename misnamed variable name in hal manager load function. BUG-AGL: SPEC-2329 Change-Id: I47922c3df935ad0f59eb62ac9d521e076893b0fb Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-manager/4a-hal-manager-cb.c')
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager-cb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
index 81f2c10..aaed4cc 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
@@ -140,7 +140,7 @@ void HalMgrLoad(afb_req_t request)
struct HalMgrData *HalMgrGlobalData;
struct SpecificHalData *addedHal;
- json_object *requestJson, *apiReceviedMetadata;
+ json_object *requestJson, *apiReceivedMetadata;
if(! (apiHandle = afb_req_get_api(request))) {
afb_req_fail(request, "api_handle", "Can't get hal manager api handle");
@@ -157,12 +157,12 @@ void HalMgrLoad(afb_req_t request)
return;
}
- if(! json_object_object_get_ex(requestJson, "metadata", &apiReceviedMetadata)) {
+ if(! json_object_object_get_ex(requestJson, "metadata", &apiReceivedMetadata)) {
afb_req_fail(request, "api_metadata", "Can't get json metadata section to register external hal");
return;
}
- if(wrap_json_unpack(apiReceviedMetadata,
+ if(wrap_json_unpack(apiReceivedMetadata,
"{s:s s:s s?:s s?:s s?:s s?:s s?:i}",
"api", &apiName,
"uid", &sndCardPath,