Avoids following error:
rrdinfo.cc:10:42: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
rp = rrd_info_r("/home/pab/ted5000.rrd");
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
int argc,
const char **argv);
rrd_info_t *rrd_info_r(
- char *);
+ const char *);
/* NOTE: rrd_update_r and rrd_update_v_r are only thread-safe if no at-style
time specifications get used!!! */
int,
char **);
rrd_info_t *rrd_info_r(
- char *filename);
+ const char *filename);
/* allocate memory for string */
char *sprintf_alloc(
} /* rrd_info_t *rrd_info */
rrd_info_t *rrd_info_r(
- char *filename)
+ const char *filename)
{
unsigned int i, ii = 0;
rrd_t rrd;