aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_i2c_sensors.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_i2c_sensors.c')
-rw-r--r--plugin_i2c_sensors.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c
index 8ac9534..6e45119 100644
--- a/plugin_i2c_sensors.c
+++ b/plugin_i2c_sensors.c
@@ -262,14 +262,14 @@ static void my_i2c_sensors_path(const char *method)
break;
}
if (!strcmp(file->d_name, "device")) {
- char fname[PATH_MAX];
- snprintf(fname, PATH_MAX, "%sdevice/temp1_input", dname);
- if (access(fname, R_OK) == 0) {
- path = realloc(path, strlen(dname) + 7);
- sprintf(path, "%sdevice/", dname);
- done = 1;
- break;
- }
+ char fname[PATH_MAX];
+ snprintf(fname, PATH_MAX, "%sdevice/temp1_input", dname);
+ if (access(fname, R_OK) == 0) {
+ path = realloc(path, strlen(dname) + 7);
+ sprintf(path, "%sdevice/", dname);
+ done = 1;
+ break;
+ }
}
}
closedir(fd2);