From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 98D903857832; Wed, 15 Sep 2021 14:10:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98D903857832 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: sig2str: use __restrict X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 1328009bb4b5f1313aaa3da47b4fba6a636bf8d6 X-Git-Newrev: 6e64fccb5f181f632494f88208eea84c1bedf99f Message-Id: <20210915141011.98D903857832@sourceware.org> Date: Wed, 15 Sep 2021 14:10:11 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2021 14:10:11 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6e64fccb5f181f632494f88208eea84c1bedf99f commit 6e64fccb5f181f632494f88208eea84c1bedf99f Author: Mike Frysinger Date: Wed Sep 15 01:04:14 2021 -0400 newlib: sig2str: use __restrict This matches the header prototype style and most of newlib, and fixes building with older versions of gcc which only accept the __ form. Diff: --- newlib/libc/signal/sig2str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/signal/sig2str.c b/newlib/libc/signal/sig2str.c index d3be1ba68..f4df913e2 100644 --- a/newlib/libc/signal/sig2str.c +++ b/newlib/libc/signal/sig2str.c @@ -226,7 +226,7 @@ sig2str(int signum, char *str) } int -str2sig(const char *restrict str, int *restrict pnum) +str2sig(const char *__restrict str, int *__restrict pnum) { unsigned long j = 0; char *endp;