use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / string / wcstok.c
index c932d0a..ecc8033 100644 (file)
@@ -1,6 +1,6 @@
 #include <wchar.h>
 
-wchar_t *wcstok(wchar_t *s, const wchar_t *sep, wchar_t **p)
+wchar_t *wcstok(wchar_t *restrict s, const wchar_t *restrict sep, wchar_t **restrict p)
 {
        if (!s && !(s = *p)) return NULL;
        s += wcsspn(s, sep);