about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 17:17:49 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 17:17:49 +0100
commit61a3a8c6ce4e6d42c900ce83cc69256e0b0589a3 (patch)
tree13146f44da6af87a23debd2c05e1c734eada47ba /ChangeLog
parent05ebfe87fa9464f0e414329accd82f20d6ec9946 (diff)
downloadglibc-61a3a8c6ce4e6d42c900ce83cc69256e0b0589a3.tar.gz
glibc-61a3a8c6ce4e6d42c900ce83cc69256e0b0589a3.tar.xz
glibc-61a3a8c6ce4e6d42c900ce83cc69256e0b0589a3.zip
hurd: fix warning
timer_ptr2id and timer_id2ptr are used to convert between
application-visible timer_t and struct timer_node *. timer_ptr2id was made
to use void * instead of timer_t in 49b650430eb5 ('Update.') for no reason.
It happens that on Linux timer_t is void *, so both that change and this
commit are no-ops there, but not on systems where timer_t is not void *.

Using timer_ptr2id for filling sival_ptr also does not make sense since that
actually is a void *.

	* sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
	instead of void *.
	* sysdeps/pthread/timer_create.c (timer_create): Do not use
	timer_ptr2id to cast struct timer_node * to void *.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f2a771781e..497b00f65a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,10 @@
 	return 0.
 	* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
 	vm_address_t * to ElfW(Addr) * for dl_main parameter.
+	* sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
+	instead of void *.
+	* sysdeps/pthread/timer_create.c (timer_create): Do not use
+	timer_ptr2id to cast struct timer_node * to void *.
 
 2018-01-27  James Clarke  <jrtc27@jrtc27.com>