summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-action.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-05-22 10:51:52 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-05-22 15:05:27 +0200
commit4a723022410de1a72b03a4901537af4e0d27397b (patch)
tree4d5e5ab58cfe9497f62f51a586b981c8b6d85e82 /ctl-lib/ctl-action.c
parent4b4a05dd1f5bd4c03c9560812bf9ed10cf31035b (diff)
Fixed compilation warnings with gcc-7.2.0
Replaced some 'size_t' by 'int' Change-Id: Iaf58b4b65f9aa2e82c0a87af45f21ca62fa4d84e Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-action.c')
-rw-r--r--ctl-lib/ctl-action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c
index f25e137..d460a27 100644
--- a/ctl-lib/ctl-action.c
+++ b/ctl-lib/ctl-action.c
@@ -338,7 +338,7 @@ CtlActionT *ActionConfig(AFB_ApiT apiHandle, json_object *actionsJ, int exportAp
// action array is close with a nullvalue;
if (json_object_is_type(actionsJ, json_type_array)) {
- size_t count = json_object_array_length(actionsJ);
+ int count = json_object_array_length(actionsJ);
actions = calloc(count + 1, sizeof (CtlActionT));
for (int idx = 0; idx < count; idx++) {