mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Parameters pthread_getspecific() changed.
This commit is contained in:
parent
4f731c9f37
commit
3384e369af
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ __ttyname_basic(int fd)
|
|||
pthread_mutex_unlock(&ttyname_lock);
|
||||
|
||||
/* Must have thread specific data field to put data */
|
||||
if (pthread_getspecific(ttyname_key, (void **) &buf) != 0) {
|
||||
if ((buf = pthread_getspecific(ttyname_key)) != 0) {
|
||||
return (NULL);
|
||||
} else if (buf == NULL) {
|
||||
if ((buf = malloc(sizeof(_PATH_DEV) + MAXNAMLEN)) != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue