From: Michael Tremer Date: Thu, 2 Oct 2025 17:15:22 +0000 (+0000) Subject: graph: Cast arguments to void* to deal with API breakage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52d8448e848da1753546b8400517dd4b66e60a0;p=telemetry.git graph: Cast arguments to void* to deal with API breakage Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graph.c b/src/daemon/graph.c index ab4eea6..d227d1e 100644 --- a/src/daemon/graph.c +++ b/src/daemon/graph.c @@ -219,7 +219,9 @@ int collecty_graph_render(collecty_graph* self, goto ERROR; // Render the graph - r = rrd_graph(collecty_args_argc(args), (char**)collecty_args_argv(args), + // We are casting the argument array to (void*) to silence a compiler + // warning since rrdtool >= 1.9 has constified their input arguments. + r = rrd_graph(collecty_args_argc(args), (void*)collecty_args_argv(args), &data, &w, &h, f, &ymin, &ymax); if (r < 0) { ERROR(self->ctx, "Failed to generate the graph: %s\n", rrd_get_error());