public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: sig2str: use __restrict Date: Wed, 15 Sep 2021 14:10:11 +0000 (GMT) [thread overview] Message-ID: <20210915141011.98D903857832@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6e64fccb5f181f632494f88208eea84c1bedf99f commit 6e64fccb5f181f632494f88208eea84c1bedf99f Author: Mike Frysinger <vapier@gentoo.org> 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;
reply other threads:[~2021-09-15 14:10 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210915141011.98D903857832@sourceware.org \ --to=vapier@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).