summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pthread.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-09-25 14:44:45 +0000
committerChristopher Faylor <me@cgf.cx>2013-09-25 14:44:45 +0000
commit1dc2c177f40875f9095dc3a10a5c93ad6eb45934 (patch)
tree313867e2adc19f38c56a166e81d2c214c63f52a0 /winsup/cygwin/pthread.cc
parent31fb5c643306b16496e97e075495de5b0335f11a (diff)
downloadcygnal-1dc2c177f40875f9095dc3a10a5c93ad6eb45934.tar.gz
cygnal-1dc2c177f40875f9095dc3a10a5c93ad6eb45934.tar.bz2
cygnal-1dc2c177f40875f9095dc3a10a5c93ad6eb45934.zip
* thread.cc (semaphore::_getvalue): Set *sval as appropriate. Set errno and
return -1 on error.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r--winsup/cygwin/pthread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc
index c63c1b8ac..7f12686e7 100644
--- a/winsup/cygwin/pthread.cc
+++ b/winsup/cygwin/pthread.cc
@@ -185,7 +185,7 @@ sem_timedwait (sem_t * sem, const struct timespec *abstime)
}
int
-sem_post (sem_t * sem)
+sem_post (sem_t *sem)
{
return semaphore::post (sem);
}