about summary refs log tree commit diff
path: root/sysdeps/generic/libc-start.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-03 00:20:51 +0000
committerRoland McGrath <roland@gnu.org>2003-03-03 00:20:51 +0000
commit3a601d31b6ac9686665a2d103c2e57f6c6443f57 (patch)
treef5e3b901830acb023b554cee4904a4f62feec0d2 /sysdeps/generic/libc-start.c
parentbb0ddc2f1eca652aa8af56825b2ba3182498cc5a (diff)
downloadglibc-3a601d31b6ac9686665a2d103c2e57f6c6443f57.tar.gz
glibc-3a601d31b6ac9686665a2d103c2e57f6c6443f57.tar.xz
glibc-3a601d31b6ac9686665a2d103c2e57f6c6443f57.zip
* sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
	variable.
Diffstat (limited to 'sysdeps/generic/libc-start.c')
-rw-r--r--sysdeps/generic/libc-start.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/generic/libc-start.c b/sysdeps/generic/libc-start.c
index a6dbebe123..b79c803d55 100644
--- a/sysdeps/generic/libc-start.c
+++ b/sysdeps/generic/libc-start.c
@@ -158,12 +158,11 @@ BP_SYM (__libc_start_main) (int (*main) (int, char **, char **),
       /* One less thread.  Decrement the counter.  If it is zero we
 	 terminate the entire process.  */
       result = 0;
-      int *const ptr;
 #  ifdef SHARED
-      ptr = __libc_pthread_functions.ptr_nthreads;
+      int *const ptr = __libc_pthread_functions.ptr_nthreads;
 #  else
       extern int __nptl_nthreads __attribute ((weak));
-      ptr = &__nptl_nthreads;
+      int *const ptr = &__nptl_nthreads;
 #  endif
 
       if (! atomic_decrement_and_test (ptr))