mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
sensord: Remove needless casts
This patch removes some needless casts. We don't have to cast explicitly from void * (in C). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5791 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
eea3628561
commit
051d8693e4
1 file changed
+3
-3
+3
-3
@@ -196,7 +196,7 @@ static int rrdGetSensors_DS(void *_data, const char *rawLabel,
|
||||
{
|
||||
(void) label; /* no warning */
|
||||
if (!feature || feature->rrd) {
|
||||
struct ds *data = (struct ds *) _data;
|
||||
struct ds *data = _data;
|
||||
char *ptr = rrdBuff + data->num * RRD_BUFF;
|
||||
const char *min, *max;
|
||||
data->argv[data->num ++] = ptr;
|
||||
@@ -306,7 +306,7 @@ struct gr {
|
||||
static int rrdCGI_DEF(void *_data, const char *rawLabel, const char *label,
|
||||
const FeatureDescriptor *feature)
|
||||
{
|
||||
struct gr *data = (struct gr *) _data;
|
||||
struct gr *data = _data;
|
||||
(void) label; /* no warning */
|
||||
if (!feature || (feature->rrd && (feature->type == data->type)))
|
||||
printf("\n\tDEF:%s=%s:%s:AVERAGE", rawLabel,
|
||||
@@ -342,7 +342,7 @@ static int rrdCGI_color(const char *label)
|
||||
static int rrdCGI_LINE(void *_data, const char *rawLabel, const char *label,
|
||||
const FeatureDescriptor *feature)
|
||||
{
|
||||
struct gr *data = (struct gr *) _data;
|
||||
struct gr *data = _data;
|
||||
if (!feature || (feature->rrd && (feature->type == data->type)))
|
||||
printf("\n\tLINE2:%s#%.6x:\"%s\"", rawLabel,
|
||||
rrdCGI_color(label), label);
|
||||
|
||||
Reference in new issue
Block a user