From 75ae498dd19d5a10945421d69ae86c0a16f109c8 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Tue, 22 May 2018 10:51:52 +0200 Subject: Fixed compilation warnings with gcc-7.2.0 Replaced some 'size_t' by 'int' Change-Id: Iaf58b4b65f9aa2e82c0a87af45f21ca62fa4d84e Signed-off-by: Thierry Bultel --- ctl-lib/ctl-action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctl-lib/ctl-action.c') diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c index c8df2c7..089fcf4 100644 --- a/ctl-lib/ctl-action.c +++ b/ctl-lib/ctl-action.c @@ -335,7 +335,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++) { -- cgit 1.2.3-korg