diff options
author | Sami Kerola | 2011-07-24 19:58:17 +0200 |
---|---|---|
committer | Sami Kerola | 2011-07-26 17:28:52 +0200 |
commit | 998f392a1f7206282084e6df90cba4007cceea13 (patch) | |
tree | 9ed666c54ac171967707382b40f4cccf5a3b529b /hwclock/rtc.c | |
parent | hwclock: coding style clean up (diff) | |
download | kernel-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/rtc.c')
-rw-r--r-- | hwclock/rtc.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c index 21c7d746d..a76b95c65 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -1,12 +1,17 @@ /* * rtc.c - Use /dev/rtc for clock access */ -#include <unistd.h> /* for close() */ -#include <fcntl.h> /* for O_RDONLY */ +#include <asm/ioctl.h> #include <errno.h> +#include <fcntl.h> +#include <stdio.h> +#include <stdlib.h> #include <sysexits.h> #include <sys/ioctl.h> -#include <sys/time.h> /* for struct timeval */ +#include <sys/select.h> +#include <sys/time.h> +#include <time.h> +#include <unistd.h> #include "clock.h" #include "nls.h" |