* [PATCH] newlib: sig2str: use __restrict
@ 2021-09-15 5:05 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-09-15 5:05 UTC (permalink / raw)
To: newlib
This matches the header prototype style and most of newlib, and fixes
building with older versions of gcc which only accept the __ form.
---
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 d3be1ba68e87..f4df913e2d53 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;
--
2.33.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-15 5:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 5:05 [PATCH] newlib: sig2str: use __restrict Mike Frysinger
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).