MUTEX_INITIALIZER should be used instead of

PTHREAD_MUTEX_INITIALIZER, here.
This commit is contained in:
Hajimu UMEMOTO 2005-04-06 15:16:04 +00:00
parent 8351d04f34
commit 1b482912d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144714

View File

@ -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);