diff options
author | Sami Kerola | 2016-07-24 23:33:01 +0200 |
---|---|---|
committer | Sami Kerola | 2017-02-05 00:39:38 +0100 |
commit | bd0786895d584644b47ef7e7ea923cda29e73fa6 (patch) | |
tree | cd07cca3ee59c6430bb93a1cf91bd8bc9063c422 /include/pathnames.h | |
parent | hwclock: remove division by zero [asan] (diff) | |
download | kernel-qcow2-util-linux-bd0786895d584644b47ef7e7ea923cda29e73fa6.tar.gz kernel-qcow2-util-linux-bd0786895d584644b47ef7e7ea923cda29e73fa6.tar.xz kernel-qcow2-util-linux-bd0786895d584644b47ef7e7ea923cda29e73fa6.zip |
hwclock: improve coding style
Make string constants to be symbolical declarations. Use longer variable
name for rtc and cmos function pointer values. Exclude code that is
architecture specific with preprocessor directives. And remove message
duplication.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index a5e8507e0..de6abe63e 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -195,5 +195,9 @@ /* ctrlaltdel paths */ #define _PATH_PROC_CTRL_ALT_DEL "/proc/sys/kernel/ctrl-alt-del" +/* hwclock-cmos paths */ +#define _PATH_DEV_PORT "/dev/port" +#define _PATH_PROC_CPUINFO "/proc/cpuinfo" + #endif /* PATHNAMES_H */ |