[git commit] linuxthreads.old: pass back up saved_errno value in manager init
Mike Frysinger
vapier at gentoo.org
Tue Apr 24 05:39:15 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=84347a3c16ec98df40fbd9fa8e26531d7b4c5187
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 at gentoo.org>
---
libpthread/linuxthreads.old/manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 85fee5e..1cae6e4 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);
More information about the uClibc-cvs
mailing list