newlib: sig2str: use __restrict

Message ID 20210915050529.15005-1-vapier@gentoo.org
State Accepted
Commit 6e64fccb5f181f632494f88208eea84c1bedf99f
Headers show
Series
  • newlib: sig2str: use __restrict
Related show

Commit Message

Mike Frysinger Sept. 15, 2021, 5:05 a.m.
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(-)

-- 
2.33.0

Patch

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;