aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/Examples/ex15.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-12-29 13:46:34 +0000
committerAndreas Jaeger <aj@suse.de>2001-12-29 13:46:34 +0000
commit9403ec5d23e7dc209361b3dbae2fdc184e1684aa (patch)
treee3a8ebed02293384081aaa3734c74d1f8b38a686 /linuxthreads/Examples/ex15.c
parent1a0ad47f268b65ad2b7b131f3f735a69fe6da860 (diff)
downloadglibc-9403ec5d23e7dc209361b3dbae2fdc184e1684aa.zip
glibc-9403ec5d23e7dc209361b3dbae2fdc184e1684aa.tar.gz
glibc-9403ec5d23e7dc209361b3dbae2fdc184e1684aa.tar.bz2
Update.
2001-12-29 Andreas Jaeger <aj@suse.de> * Examples/ex9.c: Add noreturn attribute for thread. * Examples/ex10.c: Likewise. * Examples/ex13.c (thread_start): Likewise. * Examples/ex15.c (worker): Likewise. * Examples/ex18.c: Include unistd.h for prototype of sleep.
Diffstat (limited to 'linuxthreads/Examples/ex15.c')
-rw-r--r--linuxthreads/Examples/ex15.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linuxthreads/Examples/ex15.c b/linuxthreads/Examples/ex15.c
index f73b940..e953b23 100644
--- a/linuxthreads/Examples/ex15.c
+++ b/linuxthreads/Examples/ex15.c
@@ -5,6 +5,8 @@
#include <pthread.h>
#include <unistd.h>
+static void *worker (void *dummy) __attribute__ ((__noreturn__));
+
static void *
worker (void *dummy)
{