summaryrefslogtreecommitdiffstats
path: root/hwclock/cmos.c
diff options
context:
space:
mode:
authorSami Kerola2011-07-24 19:58:17 +0200
committerSami Kerola2011-07-26 17:28:52 +0200
commit998f392a1f7206282084e6df90cba4007cceea13 (patch)
tree9ed666c54ac171967707382b40f4cccf5a3b529b /hwclock/cmos.c
parenthwclock: coding style clean up (diff)
downloadkernel-qcow2-util-linux-998f392a1f7206282084e6df90cba4007cceea13.tar.gz
kernel-qcow2-util-linux-998f392a1f7206282084e6df90cba4007cceea13.tar.xz
kernel-qcow2-util-linux-998f392a1f7206282084e6df90cba4007cceea13.zip
hwclock: include-what-you-use header check
One deletion, few adds and sort to include lists. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'hwclock/cmos.c')
-rw-r--r--hwclock/cmos.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hwclock/cmos.c b/hwclock/cmos.c
index d6216717f..8c4ccbe0d 100644
--- a/hwclock/cmos.c
+++ b/hwclock/cmos.c
@@ -45,9 +45,14 @@
* tm_isdst >0: yes, 0: no, <0: unknown
*/
-#include <unistd.h> /* for geteuid() */
-#include <fcntl.h> /* for O_RDWR */
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
+#include <time.h>
+#include <unistd.h>
+
+#include "c.h"
#include "nls.h"
#if defined(__i386__)