From e92b4bf1d1447e097b062d7dbfe36d0d5dcc2858 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 1 May 2007 16:23:19 +0000 Subject: [PATCH] added some const casts git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1037 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_create.c | 2 +- src/rrd_update.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index 1c3edc1..485be26 100644 --- a/src/rrd_create.c +++ b/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/src/rrd_update.c b/src/rrd_update.c index d853c5b..95ca90e 100644 --- a/src/rrd_update.c +++ b/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; } -- 2.11.0