diff options
author | Sami Kerola | 2015-02-08 21:44:41 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-10 13:21:24 +0100 |
commit | 559a5b6cf2efe7dee8172249312c0a7747842491 (patch) | |
tree | dd220afba61eb5251b80541999e4b2b248db48a5 /sys-utils/hwclock.c | |
parent | rename: use strrchr() instead of rindex() (diff) | |
download | kernel-qcow2-util-linux-559a5b6cf2efe7dee8172249312c0a7747842491.tar.gz kernel-qcow2-util-linux-559a5b6cf2efe7dee8172249312c0a7747842491.tar.xz kernel-qcow2-util-linux-559a5b6cf2efe7dee8172249312c0a7747842491.zip |
sulogin, hwclock: use xusleep() instead of usleep()
As said in include/c.h the usleep() is marked as obsolete, so do the same
that most of the other util-linux calls do with this interface.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r-- | sys-utils/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 9000c95b9..52a7874c7 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -609,7 +609,7 @@ set_hardware_clock_exact(const time_t sethwtime, if (debug >= 10) { int usec = random() % 1000000; printf(_("sleeping ~%d usec\n"), usec); - usleep(usec); + xusleep(usec); } gettimeofday(&nowsystime, NULL); |