From: Florian Forster Date: Wed, 2 Jul 2008 13:21:55 +0000 (+0200) Subject: rrdtool plugin: Use a hack to case the `argv' pointers in a portable way. X-Git-Tag: collectd-4.4.2~4^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1b3e36851fc2a6535379718674c1473b148202b4;p=collectd.git rrdtool plugin: Use a hack to case the `argv' pointers in a portable way. --- diff --git a/src/rrdtool.c b/src/rrdtool.c index adf6eeb1..161037ca 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -342,7 +342,7 @@ static int srrd_create (char *filename, unsigned long pdp_step, time_t last_up, optind = 0; /* bug in librrd? */ rrd_clear_error (); - status = rrd_create_r (filename, pdp_step, last_up, argc, argv); + status = rrd_create_r (filename, pdp_step, last_up, argc, (void *) argv); if (status != 0) { @@ -360,7 +360,7 @@ static int srrd_update (char *filename, char *template, int argc, char **argv) optind = 0; /* bug in librrd? */ rrd_clear_error (); - status = rrd_update_r (filename, template, argc, argv); + status = rrd_update_r (filename, template, argc, (void *) argv); if (status != 0) {