summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Frey <dpfrey@gmail.com>2017-01-24 14:26:27 -0800
committerGuenter Roeck <linux@roeck-us.net>2017-04-14 08:11:01 -0700
commit7035d7bec42ef73189eca936e496e5a63ce7ad3a (patch)
tree9e7c5c8b0a3a0fcac6b692d96b40a33ef4769227 /lib
parent3954f1035cf32582f3072df41444ec58a3237e3a (diff)
downloadlm-sensors-git-7035d7bec42ef73189eca936e496e5a63ce7ad3a.tar.gz
Make include guards consistent in libsensors
Signed-off-by: David Frey <dpfrey@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/conf.h2
-rw-r--r--lib/general.h6
-rw-r--r--lib/scanner.h2
-rw-r--r--lib/sensors.h2
-rw-r--r--lib/sysfs.h6
5 files changed, 9 insertions, 9 deletions
diff --git a/lib/conf.h b/lib/conf.h
index b7ce4f7c..2efdb0ac 100644
--- a/lib/conf.h
+++ b/lib/conf.h
@@ -31,4 +31,4 @@ extern FILE *sensors_yyin;
/* This is defined in conf-parse.y */
int sensors_yyparse(void);
-#endif /* LIB_SENSORS_CONF_H */
+#endif /* def LIB_SENSORS_CONF_H */
diff --git a/lib/general.h b/lib/general.h
index a3971e02..5d03bd20 100644
--- a/lib/general.h
+++ b/lib/general.h
@@ -18,8 +18,8 @@
MA 02110-1301 USA.
*/
-#ifndef LIB_SENSORS_GENERAL
-#define LIB_SENSORS_GENERAL
+#ifndef LIB_SENSORS_GENERAL_H
+#define LIB_SENSORS_GENERAL_H
/* These are general purpose functions. They allow you to use variable-
length arrays, which are extended automatically. A distinction is
@@ -36,4 +36,4 @@ void sensors_add_array_els(const void *els, int nr_els, void *list,
#define ARRAY_SIZE(arr) (int)(sizeof(arr) / sizeof((arr)[0]))
-#endif /* LIB_SENSORS_GENERAL */
+#endif /* def LIB_SENSORS_GENERAL_H */
diff --git a/lib/scanner.h b/lib/scanner.h
index 8cfe4270..4fb4c026 100644
--- a/lib/scanner.h
+++ b/lib/scanner.h
@@ -24,5 +24,5 @@
int sensors_scanner_init(FILE *input, const char *filename);
void sensors_scanner_exit(void);
-#endif
+#endif /* def LIB_SENSORS_SCANNER_H */
diff --git a/lib/sensors.h b/lib/sensors.h
index ce55bf3f..ed2d9a80 100644
--- a/lib/sensors.h
+++ b/lib/sensors.h
@@ -307,4 +307,4 @@ sensors_get_subfeature(const sensors_chip_name *name,
}
#endif /* __cplusplus */
-#endif /* def LIB_SENSORS_ERROR_H */
+#endif /* def LIB_SENSORS_SENSORS_H */
diff --git a/lib/sysfs.h b/lib/sysfs.h
index 2e1114e1..3f4d83a2 100644
--- a/lib/sysfs.h
+++ b/lib/sysfs.h
@@ -19,8 +19,8 @@
MA 02110-1301 USA.
*/
-#ifndef SENSORS_LIB_SYSFS_H
-#define SENSORS_LIB_SYSFS_H
+#ifndef LIB_SENSORS_SYSFS_H
+#define LIB_SENSORS_SYSFS_H
extern char sensors_sysfs_mount[];
@@ -40,4 +40,4 @@ int sensors_write_sysfs_attr(const sensors_chip_name *name,
const sensors_subfeature *subfeature,
double value);
-#endif /* !SENSORS_LIB_SYSFS_H */
+#endif /* def LIB_SENSORS_SYSFS_H */