projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1856 from rubenk/snmp-dont-dispatch-values-with-empty-type-instance
[collectd.git]
/
src
/
apple_sensors.c
diff --git
a/src/apple_sensors.c
b/src/apple_sensors.c
index
1c72dda
..
48fbcb9
100644
(file)
--- a/
src/apple_sensors.c
+++ b/
src/apple_sensors.c
@@
-114,8
+114,6
@@
static int as_read (void)
char inst[128];
int value_int;
double value_double;
char inst[128];
int value_int;
double value_double;
- int i;
-
if (!io_master_port || (io_master_port == MACH_PORT_NULL))
return (-1);
if (!io_master_port || (io_master_port == MACH_PORT_NULL))
return (-1);
@@
-170,7
+168,7
@@
static int as_read (void)
kCFStringEncodingASCII))
continue;
inst[sizeof (inst) - 1] = '\0';
kCFStringEncodingASCII))
continue;
inst[sizeof (inst) - 1] = '\0';
- for (i = 0; i < 128; i++)
+ for (i
nt i
= 0; i < 128; i++)
{
if (inst[i] == '\0')
break;
{
if (inst[i] == '\0')
break;