From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10941 invoked by alias); 21 Apr 2012 05:00:21 -0000 Received: (qmail 10912 invoked by uid 22791); 21 Apr 2012 05:00:17 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Apr 2012 05:00:03 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F05F71B40DD for ; Sat, 21 Apr 2012 04:34:44 +0000 (UTC) From: Mike Frysinger To: libc-ports@sourceware.org Subject: [PATCH 11/21] ia64: convert __const to const Date: Sat, 21 Apr 2012 05:00:00 -0000 Message-Id: <1334982948-12167-8-git-send-email-vapier@gentoo.org> In-Reply-To: <1334982948-12167-1-git-send-email-vapier@gentoo.org> References: <1334982921-12113-1-git-send-email-vapier@gentoo.org> <1334982948-12167-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00117.txt.bz2 The main tree decided to drop support for pre-ISO C code, so we can use "const" instead of "__const". Processed with a simple sed script: find `find sysdeps/ -name ia64` -type f -exec sed -i \ 's:\<__const\>:const:' {} + Signed-off-by: Mike Frysinger 2012-04-17 Mike Frysinger * sysdeps/ia64/bits/fenv.h: Change __const to const. * sysdeps/unix/sysv/linux/ia64/swapcontext.c: Likewise. --- sysdeps/ia64/bits/fenv.h | 8 ++++---- sysdeps/unix/sysv/linux/ia64/swapcontext.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sysdeps/ia64/bits/fenv.h b/sysdeps/ia64/bits/fenv.h index 0422a95..342605d 100644 --- a/sysdeps/ia64/bits/fenv.h +++ b/sysdeps/ia64/bits/fenv.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -72,15 +72,15 @@ typedef unsigned long int fexcept_t; typedef unsigned long int fenv_t; /* If the default argument is used we use this value. */ -#define FE_DFL_ENV ((__const fenv_t *) 0xc009804c0270033fUL) +#define FE_DFL_ENV ((const fenv_t *) 0xc009804c0270033fUL) #ifdef __USE_GNU /* Floating-point environment where only FE_UNNORMAL is masked since this exception is not generally supported by glibc. */ -# define FE_NOMASK_ENV ((__const fenv_t *) 0xc009804c02700302UL) +# define FE_NOMASK_ENV ((const fenv_t *) 0xc009804c02700302UL) /* Floating-point environment with (processor-dependent) non-IEEE floating point. In this case, turning on flush-to-zero mode for s0, s2, and s3. */ -# define FE_NONIEEE_ENV ((__const fenv_t *) 0xc009a04d0270037fUL) +# define FE_NONIEEE_ENV ((const fenv_t *) 0xc009a04d0270037fUL) #endif diff --git a/sysdeps/unix/sysv/linux/ia64/swapcontext.c b/sysdeps/unix/sysv/linux/ia64/swapcontext.c index 2ccc2ee..20a20ac 100644 --- a/sysdeps/unix/sysv/linux/ia64/swapcontext.c +++ b/sysdeps/unix/sysv/linux/ia64/swapcontext.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. +/* Copyright (C) 2001-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger-Tang . @@ -25,7 +25,7 @@ struct rv }; extern struct rv __getcontext (ucontext_t *__ucp) __THROW; -extern int __setcontext (__const ucontext_t *__ucp) __THROW; +extern int __setcontext (const ucontext_t *__ucp) __THROW; int __swapcontext (ucontext_t *oucp, const ucontext_t *ucp) -- 1.7.8.5