From: Peter Stamfest Date: Fri, 5 Sep 2014 06:24:21 +0000 (+0200) Subject: get rid of warnings X-Git-Tag: v1.5.0-rc1~42^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b528dbd656803f754972878786a812842547ed;p=thirdparty%2Frrdtool-1.x.git get rid of warnings --- diff --git a/src/rrd_create.c b/src/rrd_create.c index a155e3ad..13f98fb2 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -71,7 +71,7 @@ int rrd_create( int opt_no_overwrite = 0; GList * sources = NULL; const char **sources_array = NULL; - const char *template = NULL; + char *template = NULL; optind = 0; opterr = 0; /* initialize getopt */ @@ -1373,8 +1373,8 @@ static long is_interval_within_interval(time_t start1, time_t end1, return o == end1-start1; } -static int is_time_within_interval(time_t time, time_t start, time_t end) { - return (time >= start && time <= end); +static int is_time_within_interval(time_t t, time_t start, time_t end) { + return (t >= start && t <= end); } typedef struct { diff --git a/src/rrd_strtod.c b/src/rrd_strtod.c index 40f7dd2d..c988f506 100644 --- a/src/rrd_strtod.c +++ b/src/rrd_strtod.c @@ -42,7 +42,7 @@ #include "rrd.h" #include "rrd_strtod.h" -static int parse_special(char *str, double *d) { +static int parse_special(const char *str, double *d) { if (strncasecmp(str, "-nan", 4) == 0) *d = DNAN; else if (strncasecmp(str, "nan", 3) == 0) *d = -DNAN; else if (strncasecmp(str, "inf", 3) == 0) *d = DINF;