diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-08-19 21:31:42 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-08-19 21:31:42 +0000 |
commit | cb1c3eea784bed67621adba223b0549ec5730a77 (patch) | |
tree | 67c1a39113f2a15d17e7af116bbeebff1d3c81d4 /lib/libthr/thread/thr_mutexattr.c | |
parent | 8c74153b9cf6f359400dccd1c0bd72eaf534567d (diff) | |
download | FreeBSD-src-cb1c3eea784bed67621adba223b0549ec5730a77.zip FreeBSD-src-cb1c3eea784bed67621adba223b0549ec5730a77.tar.gz |
- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST.
OK'ed by: deischen
Diffstat (limited to 'lib/libthr/thread/thr_mutexattr.c')
-rw-r--r-- | lib/libthr/thread/thr_mutexattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_mutexattr.c b/lib/libthr/thread/thr_mutexattr.c index 180afd3..042ff87 100644 --- a/lib/libthr/thread/thr_mutexattr.c +++ b/lib/libthr/thread/thr_mutexattr.c @@ -127,7 +127,7 @@ int _pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) { int ret; - if (attr == NULL || *attr == NULL || type >= MUTEX_TYPE_MAX) { + if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) { errno = EINVAL; ret = -1; } else { @@ -143,7 +143,7 @@ _pthread_mutexattr_gettype(pthread_mutexattr_t *attr, int *type) int ret; if (attr == NULL || *attr == NULL || (*attr)->m_type >= - MUTEX_TYPE_MAX) { + PTHREAD_MUTEX_TYPE_MAX) { ret = EINVAL; } else { *type = (*attr)->m_type; |