Parameters pthread_getspecific() changed.

This commit is contained in:
Jeffrey Hsu 1996-11-11 09:11:59 +00:00
parent 4f731c9f37
commit 3384e369af

View File

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