storage: fix args to suppress warning
@@ -360,8 +360,8 @@ static void print_storage_info(struct flb_config *ctx, struct cio_ctx *cio)
}
}
-static int log_cb(struct cio_ctx *ctx, int level, const char *file, int line,
- char *str)
+static void log_cb(void *ctx, int level, const char *file, int line,
+ const char *str)
{
if (level == CIO_LOG_ERROR) {
flb_error("[storage] %s", str);
@@ -375,8 +375,6 @@ static int log_cb(struct cio_ctx *ctx, int level, const char *file, int line,
else if (level == CIO_LOG_DEBUG) {
flb_debug("[storage] %s", str);
}
-
- return 0;
}
int flb_storage_input_create(struct cio_ctx *cio,
