diff options
author | alex <alex@FreeBSD.org> | 1997-11-25 01:29:16 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1997-11-25 01:29:16 +0000 |
commit | 2d792e656e2819795c575a1abeb8dc54e2357484 (patch) | |
tree | afcf53c94eef7b38ab83072ef9f8a80651b0230d /lib/libpthread/thread/thr_spec.c | |
parent | 674aa81547dfa76c24a1a45b5acb9119cab75311 (diff) | |
download | FreeBSD-src-2d792e656e2819795c575a1abeb8dc54e2357484.zip FreeBSD-src-2d792e656e2819795c575a1abeb8dc54e2357484.tar.gz |
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.
Diffstat (limited to 'lib/libpthread/thread/thr_spec.c')
-rw-r--r-- | lib/libpthread/thread/thr_spec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c index 8d06c52..7ff9054 100644 --- a/lib/libpthread/thread/thr_spec.c +++ b/lib/libpthread/thread/thr_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: */ |