From 2d792e656e2819795c575a1abeb8dc54e2357484 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 25 Nov 1997 01:29:16 +0000 Subject: Modify the return values to comply with POSIX. Previously these functions would return -1 and set errno to indicate the specific error. POSIX requires that the functions return the error code as the return value of the function instead. --- lib/libc_r/uthread/uthread_spec.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/libc_r/uthread/uthread_spec.c') diff --git a/lib/libc_r/uthread/uthread_spec.c b/lib/libc_r/uthread/uthread_spec.c index 8d06c52..7ff9054 100644 --- a/lib/libc_r/uthread/uthread_spec.c +++ b/lib/libc_r/uthread/uthread_spec.c @@ -209,7 +209,6 @@ pthread_getspecific(pthread_key_t key) /* Check for errors: */ if (pthread == NULL) { /* Return an invalid argument error: */ - errno = EINVAL; data = NULL; } /* Check if there is specific data: */ -- cgit v1.1