4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

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.
This commit is contained in:
Mike Frysinger 2021-09-15 01:04:14 -04:00
parent 1328009bb4
commit 6e64fccb5f

View File

@ -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;