From 3384e369af20064df559ffb261363bcf3a2ba417 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Mon, 11 Nov 1996 09:11:59 +0000 Subject: [PATCH] Parameters pthread_getspecific() changed. --- lib/libc/gen/ttyname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/ttyname.c b/lib/libc/gen/ttyname.c index 7593850a0c6c..3c87d69239d8 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) {