summaryrefslogtreecommitdiff
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2008-08-12 13:58:51 +0200
committerKarel Zak <kzak@redhat.com>2008-08-13 11:43:59 +0200
commit982a4a5d98c7034004ec04bff7faea6e1dfcf131 (patch)
tree2325a4dffb5518397868159468bbdd32cfcefbdc /hwclock/hwclock.c
parent3b96a7acbc8e3805c6af6c3e185f007b1d68118d (diff)
downloadutil-linux-old-982a4a5d98c7034004ec04bff7faea6e1dfcf131.tar.gz
hwclock: use time limit for synchronization busy wait
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r--hwclock/hwclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 82da273d..c08ae3f5 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -182,7 +182,7 @@ read_date_from_file (struct tm *tm) {
write_date_to_file (tm);
}
-static double
+double
time_diff(struct timeval subtrahend, struct timeval subtractor) {
/*---------------------------------------------------------------------------
The difference in seconds between two times in "timeval" format.