2003-03-02 Roland McGrath <roland@redhat.com>
authorroland <roland>
Mon, 3 Mar 2003 00:20:42 +0000 (00:20 +0000)
committerroland <roland>
Mon, 3 Mar 2003 00:20:42 +0000 (00:20 +0000)
* sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
variable.

sysdeps/generic/libc-start.c

index a6dbebe..b79c803 100644 (file)
@@ -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))