]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Remove lingering references to the time function
authorFlorian Weimer <fweimer@redhat.com>
Thu, 7 Nov 2019 08:52:34 +0000 (09:52 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 7 Nov 2019 08:54:33 +0000 (09:54 +0100)
They cause a check-localplt failure after commit f9a7554009cf38f39.

Fixes: f9a7554009cf38f390e74fcabc5b49f974f72382
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Change-Id: I37bc20f3449b9e358f32879ed231720c969965b4

sysdeps/mach/sleep.c

index b30ec7b1d6005770255aca345c6c7a4f85986a59..267928e1e47fb7f70ef82e156cd576d24503b6d4 100644 (file)
@@ -33,10 +33,10 @@ __sleep (unsigned int seconds)
 
   recv = __mach_reply_port ();
 
-  before = time (NULL);
+  before = time_now ();
   (void) __mach_msg (NULL, MACH_RCV_MSG|MACH_RCV_TIMEOUT|MACH_RCV_INTERRUPT,
                     0, 0, recv, seconds * 1000, MACH_PORT_NULL);
-  after = time (NULL);
+  after = time_now ();
   __mach_port_destroy (__mach_task_self (), recv);
 
   return seconds - (after - before);