From: Ulrich Drepper Date: Wed, 11 Jan 2012 00:37:35 +0000 (-0500) Subject: Add const attribute to pthread_equal X-Git-Tag: glibc-2.16-tps~1070 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8898f02074fc1c6a461ee19a817b482b9ffca639;p=thirdparty%2Fglibc.git Add const attribute to pthread_equal --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index fdc00d784f6..34f4ce17bdf 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,7 @@ 2012-01-10 Ulrich Drepper + * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal. + * pthreadP.h: Add noreturn to __pthread_exit. * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit. diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index 05cf7d2f686..ce38cf9d644 100644 --- a/nptl/sysdeps/pthread/pthread.h +++ b/nptl/sysdeps/pthread/pthread.h @@ -266,7 +266,8 @@ extern int pthread_detach (pthread_t __th) __THROW; extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__)); /* Compare two thread identifiers. */ -extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __THROW; +extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) + __THROW __attribute__ ((__const__)); /* Thread attribute handling. */