summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-24 01:33:41 -0400
committerMike Frysinger <vapier@gentoo.org>2012-04-24 01:39:15 -0400
commit84347a3c16ec98df40fbd9fa8e26531d7b4c5187 (patch)
treee4a0702df501b53c060bf96570b2f5d5320985ae /libpthread
parent22eb98f555772716259538a4613643f0ac4160c1 (diff)
linuxthreads.old: pass back up saved_errno value in manager init
This matches the newer linuxthreads code, and fixes the build warning: libpthread/linuxthreads.old/manager.c: In function 'pthread_handle_create': libpthread/linuxthreads.old/manager.c:487:7: warning: variable 'saved_errno' set but not used [-Wunused-but-set-variable] Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads.old/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 85fee5ec5..1cae6e418 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -666,7 +666,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
__pthread_handles[sseg].h_descr = NULL;
__pthread_handles[sseg].h_bottom = NULL;
__pthread_handles_num--;
- return errno;
+ return saved_errno;
}
PDEBUG("new thread pid = %d\n", pid);