diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-05-22 10:51:52 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-05-22 15:05:27 +0200 |
commit | 4a723022410de1a72b03a4901537af4e0d27397b (patch) | |
tree | 4d5e5ab58cfe9497f62f51a586b981c8b6d85e82 /ctl-lib/ctl-plugin.c | |
parent | 4b4a05dd1f5bd4c03c9560812bf9ed10cf31035b (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-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 d20950f..505daf1 100644 --- a/ctl-lib/ctl-plugin.c +++ b/ctl-lib/ctl-plugin.c @@ -194,7 +194,7 @@ static int LoadFoundPlugins(AFB_ApiT apiHandle, json_object *scanResult, json_ob char *fullpath; char *ext; int i; - size_t len; + int len; json_object *object = NULL; pluginpath[CONTROL_MAXPATH_LEN - 1] = '\0'; @@ -365,7 +365,7 @@ static int PluginLoad (AFB_ApiT apiHandle, CtlPluginT *ctlPlugin, json_object *p int PluginConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *pluginsJ) { int err = 0; int idx = 0; - size_t length = 0; + int length = 0; if (ctlPlugins) { |