aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_i2c_sensors.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 02:53:04 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 02:53:04 +0000
commit2a765ae84de7c91c424a7fc220e326bf33985665 (patch)
treeaf838963db82a92688869dca45d36c026b3494f9 /plugin_i2c_sensors.c
parent48ea1dd640e3bce5eae985ca542b7ef4d543bc6b (diff)
downloadlcd4linux-2a765ae84de7c91c424a7fc220e326bf33985665.tar.gz
indentation
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1150 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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);