summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>1996-11-11 09:11:59 +0000
committerhsu <hsu@FreeBSD.org>1996-11-11 09:11:59 +0000
commit15c6125d87839a2edaa4dde400712b261f3701c6 (patch)
tree63fc59fd9b666e4c79964c022689ab7b691976ff /lib
parentf37672c1a74df60c665173c00e8002a365140172 (diff)
downloadFreeBSD-src-15c6125d87839a2edaa4dde400712b261f3701c6.zip
FreeBSD-src-15c6125d87839a2edaa4dde400712b261f3701c6.tar.gz
Parameters pthread_getspecific() changed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/ttyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/ttyname.c b/lib/libc/gen/ttyname.c
index 7593850..3c87d69 100644
--- a/lib/libc/gen/ttyname.c
+++ b/lib/libc/gen/ttyname.c
@@ -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) {
OpenPOWER on IntegriCloud