From 3a70af2168910c6ad0d59924d276f831638a52e0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 May 2023 14:36:17 +0200 Subject: gettimeofday, pthread-*, thread, thrd: Don't omit intended initializers. * lib/gettimeofday.c (gettimeofday): List the initializers of both tv_sec and tv_usec. * lib/glthread/thread.c (gl_thread_self): List the initializers of both tv_sec and tv_nsec. * lib/pthread-cond.c (pthread_cond_wait): Likewise. * lib/thrd.c (rpl_thrd_current): Likewise. * lib/pthread-rwlock.c (MIN): New macro. (pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock): List the initializers of both tv_sec and tv_nsec. Don't modify the duration after having initialized it. * lib/pthread_mutex_timedlock.c (MIN): New macro. (pthread_mutex_timedlock): List the initializers of both tv_sec and tv_nsec. Don't modify the duration after having initialized it. --- ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index d01675a51c..9bf5a0d874 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,20 @@ 2023-05-15 Bruno Haible + gettimeofday, pthread-*, thread, thrd: Don't omit intended initializers. + * lib/gettimeofday.c (gettimeofday): List the initializers of both + tv_sec and tv_usec. + * lib/glthread/thread.c (gl_thread_self): List the initializers of both + tv_sec and tv_nsec. + * lib/pthread-cond.c (pthread_cond_wait): Likewise. + * lib/thrd.c (rpl_thrd_current): Likewise. + * lib/pthread-rwlock.c (MIN): New macro. + (pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock): List the + initializers of both tv_sec and tv_nsec. Don't modify the duration after + having initialized it. + * lib/pthread_mutex_timedlock.c (MIN): New macro. + (pthread_mutex_timedlock): List the initializers of both tv_sec and + tv_nsec. Don't modify the duration after having initialized it. + select: Fix compilation error (regression from yesterday). * lib/select.c (rpl_select): Revert last change. -- cgit v1.2.1