mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Warning fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4807 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user