diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-30 23:07:23 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-30 23:15:32 +0200 |
commit | f6113f29c57fd0c7b4df8e1fa6e5514720056320 (patch) | |
tree | 4efdae0edc96212eaa15fb180732b8b73a04cc49 /ctl-lib/ctl-plugin.c | |
parent | b9167eb1386fad27bd5bff94d26598f5fd49c38d (diff) |
Fix conversion compilation warning
Change-Id: I0d5350c1e454bc118e4470ae7ff0eafe253cd2bf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-plugin.c')
-rw-r--r-- | ctl-lib/ctl-plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-plugin.c b/ctl-lib/ctl-plugin.c index 705a2b4..2520d77 100644 --- a/ctl-lib/ctl-plugin.c +++ b/ctl-lib/ctl-plugin.c @@ -203,7 +203,7 @@ STATIC int PluginLoadOne (AFB_ApiT apiHandle, CtlPluginT *ctlPlugin, json_object // look on l2c command and push them to LUA if (json_object_get_type(lua2csJ) == json_type_array) { - int length = json_object_array_length(lua2csJ); + size_t length = json_object_array_length(lua2csJ); l2cFunc = calloc(length + ctlLua2cFunc->l2cCount + 1, sizeof (luaL_Reg)); for (count = 0; count < length; count++) { int err; @@ -267,7 +267,7 @@ PUBLIC int PluginConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *p else { if (json_object_get_type(pluginsJ) == json_type_array) { - int length = json_object_array_length(pluginsJ); + size_t length = json_object_array_length(pluginsJ); ctlPlugins = calloc (length+1, sizeof(CtlPluginT)); for (int idx=0; idx < length; idx++) { json_object *pluginJ = json_object_array_get_idx(pluginsJ, idx); |