Parameters pthread_getspecific() changed.
This commit is contained in:
parent
4f731c9f37
commit
3384e369af
@ -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 New Issue
Block a user