From a18f6a23b908c75ec0f68c522fb64f3265516b64 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Sat, 25 Oct 2014 12:26:52 +0300 Subject: [PATCH] test-plugin: get rid of a compiler warning. --- src/plugins/plugin-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/plugin-test.c b/src/plugins/plugin-test.c index 5d5dbe7..61fdad5 100644 --- a/src/plugins/plugin-test.c +++ b/src/plugins/plugin-test.c @@ -383,7 +383,9 @@ void invoke_cb(mrp_console_t *c, void *user_data, int argc, char **argv) method = argv[3]; narg = MRP_ARRAY_SIZE(args); - for (i = 4, narg = 0; i < argc && narg < MRP_ARRAY_SIZE(args); i++, narg++) { + for (i = 4, narg = 0; + i < argc && narg < (int)MRP_ARRAY_SIZE(args); + i++, narg++) { type = argv[i]; value = strchr(type, ':'); -- 2.7.4