From dadebdaeeba87778cad0fb842f8e75bdd22a7043 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 24 Dec 2011 04:32:49 -0500 Subject: [PATCH] Add missing restrict in mbrtowc declaration --- ChangeLog | 4 ++++ wcsmbs/wchar.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb53698b58..ca936b38a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,10 @@ * posix/regex_internal.c (re_string_fetch_byte_case): Remove pure attribute. +2011-12-24 Ulrich Drepper + + * wcsmbs/wchar.h: Add missing __restrict. + 2011-12-23 Ulrich Drepper [BZ #13532] diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index 80d7ae2b5c..2b35f51ad6 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -361,7 +361,7 @@ extern int mbsinit (__const mbstate_t *__ps) __THROW __attribute_pure__; to by S to PWC. */ extern size_t mbrtowc (wchar_t *__restrict __pwc, __const char *__restrict __s, size_t __n, - mbstate_t *__p) __THROW; + mbstate_t *__restrict __p) __THROW; /* Write multibyte representation of wide character WC to S. */ extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, -- 2.11.4.GIT