about summary refs log tree commit diff
path: root/linuxthreads/Examples/ex13.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/Examples/ex13.c')
-rw-r--r--linuxthreads/Examples/ex13.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxthreads/Examples/ex13.c b/linuxthreads/Examples/ex13.c
index af95358297..cbc7a2b2bd 100644
--- a/linuxthreads/Examples/ex13.c
+++ b/linuxthreads/Examples/ex13.c
@@ -1,5 +1,5 @@
 /* Test for Pthreads/mutexes.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kurt Garloff <garloff@suse.de>, 2000.
 
@@ -25,6 +25,9 @@
 #include <string.h>
 #include <unistd.h>
 
+static void *thread_start (void *ptr) __attribute__ ((__noreturn__));
+
+
 struct thr_ctrl
 {
   pthread_mutex_t mutex;
@@ -58,7 +61,6 @@ pthr_cond_signal_mutex (pthread_cond_t * cond, pthread_mutex_t * mut)
     printf ("mutex_unlock: %s\n", strerror (err));
 }
 
-
 static void *
 thread_start (void *ptr)
 {