MUTEX_INITIALIZER should be used instead of
PTHREAD_MUTEX_INITIALIZER, here.
This commit is contained in:
parent
8351d04f34
commit
1b482912d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144714
@ -105,7 +105,7 @@ struct dom_binding *_ypbindlist;
|
||||
static char _yp_domain[MAXHOSTNAMELEN];
|
||||
int _yplib_timeout = 10;
|
||||
|
||||
static mutex_t _ypmutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static mutex_t _ypmutex = MUTEX_INITIALIZER;
|
||||
#define YPLOCK() mutex_lock(&_ypmutex);
|
||||
#define YPUNLOCK() mutex_unlock(&_ypmutex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user