Module Name: src Committed By: christos Date: Fri Dec 8 03:08:19 UTC 2017
Modified Files: src/lib/libpthread: pthread_cond.c Log Message: unconst the timestamp To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libpthread/pthread_cond.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpthread/pthread_cond.c diff -u src/lib/libpthread/pthread_cond.c:1.64 src/lib/libpthread/pthread_cond.c:1.65 --- src/lib/libpthread/pthread_cond.c:1.64 Sun Jul 3 10:24:58 2016 +++ src/lib/libpthread/pthread_cond.c Thu Dec 7 22:08:19 2017 @@ -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 @@ pthread_cond_timedwait(pthread_cond_t *c 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);