From a784e502472fb3a1afa4d01a47c66b52d23e00f6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 7 Jan 2012 23:57:22 -0500 Subject: Remove pre-ISO C support No more __const. --- debug/execinfo.h | 6 +++--- debug/mbsnrtowcs_chk.c | 4 ++-- debug/mbsrtowcs_chk.c | 4 ++-- debug/wcsnrtombs_chk.c | 4 ++-- debug/wcsrtombs_chk.c | 4 ++-- debug/wcstombs_chk.c | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) (limited to 'debug') diff --git a/debug/execinfo.h b/debug/execinfo.h index c1614cc1f0..04189a1abb 100644 --- a/debug/execinfo.h +++ b/debug/execinfo.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999, 2004, 2005, 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 @@ -30,13 +30,13 @@ extern int backtrace (void **__array, int __size) __nonnull ((1)); /* Return names of functions from the backtrace list in ARRAY in a newly malloc()ed memory block. */ -extern char **backtrace_symbols (void *__const *__array, int __size) +extern char **backtrace_symbols (void *const *__array, int __size) __THROW __nonnull ((1)); /* This function is similar to backtrace_symbols() but it writes the result immediately to a file. */ -extern void backtrace_symbols_fd (void *__const *__array, int __size, int __fd) +extern void backtrace_symbols_fd (void *const *__array, int __size, int __fd) __THROW __nonnull ((1)); __END_DECLS diff --git a/debug/mbsnrtowcs_chk.c b/debug/mbsnrtowcs_chk.c index 8872540ee0..fdad043c8d 100644 --- a/debug/mbsnrtowcs_chk.c +++ b/debug/mbsnrtowcs_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 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 @@ -21,7 +21,7 @@ size_t -__mbsnrtowcs_chk (wchar_t *dst, __const char **src, size_t nmc, size_t len, +__mbsnrtowcs_chk (wchar_t *dst, const char **src, size_t nmc, size_t len, mbstate_t *ps, size_t dstlen) { if (__builtin_expect (dstlen < len, 0)) diff --git a/debug/mbsrtowcs_chk.c b/debug/mbsrtowcs_chk.c index 22d5a35580..73d87978ef 100644 --- a/debug/mbsrtowcs_chk.c +++ b/debug/mbsrtowcs_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 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 @@ -21,7 +21,7 @@ size_t -__mbsrtowcs_chk (wchar_t *dst, __const char **src, size_t len, +__mbsrtowcs_chk (wchar_t *dst, const char **src, size_t len, mbstate_t *ps, size_t dstlen) { if (__builtin_expect (dstlen < len, 0)) diff --git a/debug/wcsnrtombs_chk.c b/debug/wcsnrtombs_chk.c index 67644bd557..a38c3240fa 100644 --- a/debug/wcsnrtombs_chk.c +++ b/debug/wcsnrtombs_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 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 @@ -21,7 +21,7 @@ size_t -__wcsnrtombs_chk (char *dst, __const wchar_t **src, size_t nwc, size_t len, +__wcsnrtombs_chk (char *dst, const wchar_t **src, size_t nwc, size_t len, mbstate_t *ps, size_t dstlen) { if (__builtin_expect (dstlen < len, 0)) diff --git a/debug/wcsrtombs_chk.c b/debug/wcsrtombs_chk.c index 9334267bae..6c36a1f8aa 100644 --- a/debug/wcsrtombs_chk.c +++ b/debug/wcsrtombs_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 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 @@ -21,7 +21,7 @@ size_t -__wcsrtombs_chk (char *dst, __const wchar_t **src, size_t len, +__wcsrtombs_chk (char *dst, const wchar_t **src, size_t len, mbstate_t *ps, size_t dstlen) { if (__builtin_expect (dstlen < len, 0)) diff --git a/debug/wcstombs_chk.c b/debug/wcstombs_chk.c index 0da48f9803..dbbc6a4ebf 100644 --- a/debug/wcstombs_chk.c +++ b/debug/wcstombs_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 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 @@ -22,7 +22,7 @@ size_t -__wcstombs_chk (char *dst, __const wchar_t *src, size_t len, size_t dstlen) +__wcstombs_chk (char *dst, const wchar_t *src, size_t len, size_t dstlen) { if (__builtin_expect (dstlen < len, 0)) __chk_fail (); -- cgit v1.2.3