mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2003-03-16 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here, not at function level. * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
This commit is contained in:
@ -40,7 +40,6 @@ extern void __pthread_clock_settime (hp_timing_t offset)
|
||||
int
|
||||
clock_settime (clockid_t clock_id, const struct timespec *tp)
|
||||
{
|
||||
struct timeval tv;
|
||||
int retval;
|
||||
|
||||
/* Make sure the time cvalue is OK. */
|
||||
@ -54,6 +53,7 @@ clock_settime (clockid_t clock_id, const struct timespec *tp)
|
||||
{
|
||||
#define HANDLE_REALTIME \
|
||||
do { \
|
||||
struct timeval tv; \
|
||||
TIMESPEC_TO_TIMEVAL (&tv, tp); \
|
||||
\
|
||||
retval = settimeofday (&tv, NULL); \
|
||||
|
Reference in New Issue
Block a user