aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_i2c_sensors.c
diff options
context:
space:
mode:
authorgeronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-25 13:36:33 +0000
committergeronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-25 13:36:33 +0000
commitf5ca09365013ad01f33db2d2f58b222d6391b38d (patch)
tree14f52fa897c91489fa612827ff7bbdab42cf0d7b /plugin_i2c_sensors.c
parentc5130183e05c6dcb274b6341a05f496acf64aa1f (diff)
downloadlcd4linux-f5ca09365013ad01f33db2d2f58b222d6391b38d.tar.gz
[lcd4linux @ 2006-02-25 13:36:33 by geronet]
updated indent.sh, applied coding style git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@647 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_i2c_sensors.c')
-rw-r--r--plugin_i2c_sensors.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c
index 718f1e4..b3bbc2f 100644
--- a/plugin_i2c_sensors.c
+++ b/plugin_i2c_sensors.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_i2c_sensors.c,v 1.24 2005/05/08 04:32:44 reinelt Exp $
+/* $Id: plugin_i2c_sensors.c,v 1.25 2006/02/25 13:36:33 geronet Exp $
*
* I2C sensors plugin
*
@@ -23,6 +23,9 @@
*
*
* $Log: plugin_i2c_sensors.c,v $
+ * Revision 1.25 2006/02/25 13:36:33 geronet
+ * updated indent.sh, applied coding style
+ *
* Revision 1.24 2005/05/08 04:32:44 reinelt
* CodingStyle added and applied
*
@@ -338,7 +341,8 @@ static void my_i2c_sensors_path(const char *method)
while ((dir = readdir(fd1))) {
/* Skip non-directories and '.' and '..' */
- if ((dir->d_type != DT_DIR && dir->d_type != DT_LNK) || strcmp(dir->d_name, ".") == 0 || strcmp(dir->d_name, "..") == 0) {
+ if ((dir->d_type != DT_DIR && dir->d_type != DT_LNK) || strcmp(dir->d_name, ".") == 0
+ || strcmp(dir->d_name, "..") == 0) {
continue;
}
@@ -351,7 +355,8 @@ static void my_i2c_sensors_path(const char *method)
done = 0;
while ((file = readdir(fd2))) {
/* FIXME : do all sensors have a temp_input1 ? */
- if (!strcmp(file->d_name, "temp_input1") || !strcmp(file->d_name, "temp1_input") || !strcmp(file->d_name, "temp1")) {
+ if (!strcmp(file->d_name, "temp_input1") || !strcmp(file->d_name, "temp1_input")
+ || !strcmp(file->d_name, "temp1")) {
path = realloc(path, strlen(dname) + 1);
strcpy(path, dname);
done = 1;