diff --git a/prog/sensord/args.c b/prog/sensord/args.c index 1a7e4b7f..d2278259 100644 --- a/prog/sensord/args.c +++ b/prog/sensord/args.c @@ -80,7 +80,7 @@ static struct { { "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { "daemon", LOG_DAEMON }, { "user", LOG_USER }, - { NULL } + { NULL, 0 } }; static int diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c index e01da52c..03cd7197 100644 --- a/prog/sensord/rrd.c +++ b/prog/sensord/rrd.c @@ -86,8 +86,8 @@ rrdNextChar static void rrdCheckLabel -(const char *rawLabel, int index) { - char *buffer = rrdLabels[index]; +(const char *rawLabel, int index0) { + char *buffer = rrdLabels[index0]; int i, j, okay; i = 0; @@ -104,7 +104,7 @@ rrdCheckLabel j = 0; okay = (i > 0); - while (okay && (j < index)) /* locate duplicates */ + while (okay && (j < index0)) /* locate duplicates */ okay = strcmp (rrdLabels[j ++], buffer); while (!okay) { /* uniquify duplicate labels with _? or _?? */ @@ -128,7 +128,7 @@ rrdCheckLabel } j = 0; okay = 1; - while (okay && (j < index)) + while (okay && (j < index0)) okay = strcmp (rrdLabels[j ++], buffer); } } @@ -274,12 +274,12 @@ rrdInit struct gr { DataType type; - char *h2; - char *image; - char *title; - char *axisTitle; - char *axisDefn; - char *options; + const char *h2; + const char *image; + const char *title; + const char *axisTitle; + const char *axisDefn; + const char *options; int loadAvg; }; @@ -357,7 +357,14 @@ static struct gr graphs[] = { "-s -1w --alt-autoscale", 0 }, { - DataType_other + DataType_other, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + 0 } };