mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MUTEX_INITIALIZER should be used instead of
PTHREAD_MUTEX_INITIALIZER, here.
This commit is contained in:
parent
8351d04f34
commit
1b482912d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue