diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-01-07 21:43:30 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-01-07 21:43:30 +0000 |
commit | d0b3cca28915f23ebee56e15aa2bf10ef213f667 (patch) | |
tree | 684fe18300f96eaa7c12618e63dc031b5e3f8d96 /lib/libc_r/uthread | |
parent | 19fd807f21ae37cb51fae8aac709d491b7fee9a9 (diff) | |
download | FreeBSD-src-d0b3cca28915f23ebee56e15aa2bf10ef213f667.zip FreeBSD-src-d0b3cca28915f23ebee56e15aa2bf10ef213f667.tar.gz |
pthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *')
to be consistent with other pthread_XXX functions
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r-- | lib/libc_r/uthread/uthread_attr_get_np.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc_r/uthread/uthread_attr_get_np.c b/lib/libc_r/uthread/uthread_attr_get_np.c index b46761e..a427f79 100644 --- a/lib/libc_r/uthread/uthread_attr_get_np.c +++ b/lib/libc_r/uthread/uthread_attr_get_np.c @@ -34,17 +34,16 @@ __weak_reference(_pthread_attr_get_np, pthread_attr_get_np); int -_pthread_attr_get_np(pthread_t *pid, pthread_attr_t *dst) +_pthread_attr_get_np(pthread_t pid, pthread_attr_t *dst) { int ret; - if ((pid == NULL) || (*pid == NULL) || (dst == NULL) || (*dst == NULL)) - return(EINVAL); + if (pid == NULL || dst == NULL || *dst == NULL) + return (EINVAL); - if ((ret = _find_thread(*pid)) != 0) - return(ret); - - memcpy(*dst, &(*pid)->attr, sizeof(struct pthread_attr)); + if ((ret = _find_thread(pid)) != 0) + return (ret); + memcpy(*dst, &pid->attr, sizeof(struct pthread_attr)); return (0); } |