From 9403ec5d23e7dc209361b3dbae2fdc184e1684aa Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 29 Dec 2001 13:46:34 +0000 Subject: Update. 2001-12-29 Andreas Jaeger * 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. --- linuxthreads/Examples/ex10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linuxthreads/Examples/ex10.c') diff --git a/linuxthreads/Examples/ex10.c b/linuxthreads/Examples/ex10.c index d89f4f469d..8af1b6e1ca 100644 --- a/linuxthreads/Examples/ex10.c +++ b/linuxthreads/Examples/ex10.c @@ -1,5 +1,5 @@ /* Tests for pthread_mutex_timedlock function. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Kaz Kylheku , 2000. The GNU C Library is free software; you can redistribute it and/or @@ -28,7 +28,7 @@ #define NUM_ITERS 50 #define TIMEOUT_NS 100000000L -static void *thread (void *); +static void *thread (void *) __attribute__ ((__noreturn__)); static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; int -- cgit v1.2.3