about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nptl/ChangeLog4
-rw-r--r--nptl/init.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index dcc48e074d..9df675912c 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-14  Ulrich Drepper  <drepper@redhat.com>
+
+	* init.c (pthread_funtions): Make array const.
+
 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
 
 	* allocatestack.c (__make_stacks_executable): Change interface.
diff --git a/nptl/init.c b/nptl/init.c
index 1f11edb26f..876b9d3bbd 100644
--- a/nptl/init.c
+++ b/nptl/init.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -71,7 +71,7 @@ extern void __libc_setup_tls (size_t tcbsize, size_t tcbalign);
 
 
 #ifdef SHARED
-static struct pthread_functions pthread_functions =
+static const struct pthread_functions pthread_functions =
   {
     .ptr_pthread_attr_destroy = __pthread_attr_destroy,
 # if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)