Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread unconst the timestamp



details:   https://anonhg.NetBSD.org/src/rev/2fd4f73e2085
branches:  trunk
changeset: 828312:2fd4f73e2085
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 08 03:08:19 2017 +0000

description:
unconst the timestamp

diffstat:

 lib/libpthread/pthread_cond.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 93133c877a92 -r 2fd4f73e2085 lib/libpthread/pthread_cond.c
--- a/lib/libpthread/pthread_cond.c     Fri Dec 08 01:20:52 2017 +0000
+++ b/lib/libpthread/pthread_cond.c     Fri Dec 08 03:08:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_cond.c,v 1.64 2016/07/03 14:24:58 christos Exp $       */
+/*     $NetBSD: pthread_cond.c,v 1.65 2017/12/08 03:08:19 christos Exp $       */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cond.c,v 1.64 2016/07/03 14:24:58 christos Exp $");
+__RCSID("$NetBSD: pthread_cond.c,v 1.65 2017/12/08 03:08:19 christos Exp $");
 
 #include <stdlib.h>
 #include <errno.h>
@@ -166,8 +166,9 @@
                self->pt_willpark = 0;
                self->pt_blocking++;
                do {
-                       retval = _lwp_park(clkid, TIMER_ABSTIME, abstime,
-                           self->pt_unpark, __UNVOLATILE(&mutex->ptm_waiters),
+                       retval = _lwp_park(clkid, TIMER_ABSTIME,
+                           __UNCONST(abstime), self->pt_unpark,
+                           __UNVOLATILE(&mutex->ptm_waiters),
                            __UNVOLATILE(&mutex->ptm_waiters));
                        self->pt_unpark = 0;
                } while (retval == -1 && errno == ESRCH);



Home | Main Index | Thread Index | Old Index