From: oetiker Date: Tue, 1 May 2007 16:23:19 +0000 (+0000) Subject: added some const casts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ea45003f193104e31c4b40e580cc6596d061251;p=rrdtool-all.git added some const casts git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1037 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_create.c b/program/src/rrd_create.c index 1c3edc18..485be263 100644 --- a/program/src/rrd_create.c +++ b/program/src/rrd_create.c @@ -84,7 +84,7 @@ rrd_create(int argc, char **argv) } rc = rrd_create_r(argv[optind], pdp_step, last_up, - argc - optind - 1, argv + optind + 1); + argc - optind - 1, (const char **)(argv + optind + 1)); return rc; } diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index d853c5b1..95ca90ea 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -135,7 +135,7 @@ info_t *rrd_update_v(int argc, char **argv) rc.u_int = 0; result = info_push(NULL,sprintf_alloc("return_value"),RD_I_INT,rc); rc.u_int = _rrd_update(argv[optind], tmplt, - argc - optind - 1, argv + optind + 1, result); + argc - optind - 1, (const char **)(argv + optind + 1), result); result->value.u_int = rc.u_int; end_tag: return result; @@ -181,7 +181,7 @@ rrd_update(int argc, char **argv) } rc = rrd_update_r(argv[optind], tmplt, - argc - optind - 1, argv + optind + 1); + argc - optind - 1, (const char **)(argv + optind + 1)); return rc; }