summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/manager.c
diff options
context:
space:
mode:
authorRon <ron@debian.org>2009-06-27 04:44:18 +0930
committerAustin Foxley <austinf@cetoncorp.com>2009-07-09 01:34:57 -0700
commitc1040feea984d4bf8760da64b552bd22ee7a00c4 (patch)
tree2dbc61f0a41228be1fa603d5beca1795d91dd1b2 /libpthread/linuxthreads.old/manager.c
parent43eee9323fbc1327f2eadb2f547ff7c134f74fed (diff)
downloaduClibc-alpine-c1040feea984d4bf8760da64b552bd22ee7a00c4.tar.bz2
uClibc-alpine-c1040feea984d4bf8760da64b552bd22ee7a00c4.tar.xz
Add noreturn attributes to some functions that won't ever do so
usage() is also made static in answer to warnings about no prototype. In __pthread_manager_event() we also have to drop the return statement, else gcc will in turn complain about a non-returning function having one. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/linuxthreads.old/manager.c')
-rw-r--r--libpthread/linuxthreads.old/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 19be92fdf..0617d7dd9 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -248,7 +248,7 @@ int attribute_noreturn __pthread_manager(void *arg)
}
}
-int __pthread_manager_event(void *arg)
+int attribute_noreturn __pthread_manager_event(void *arg)
{
/* If we have special thread_self processing, initialize it. */
#ifdef INIT_THREAD_SELF
@@ -260,7 +260,7 @@ int __pthread_manager_event(void *arg)
/* Free it immediately. */
__pthread_unlock (THREAD_GETMEM((&__pthread_manager_thread), p_lock));
- return __pthread_manager(arg);
+ __pthread_manager(arg);
}
/* Process creation */