use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / time / asctime_r.c
index e51b880..7dfbb12 100644 (file)
@@ -1,8 +1,8 @@
 #include <time.h>
 
-char *__asctime(const struct tm *, char *);
+char *__asctime(const struct tm *restrict, char *restrict);
 
-char *asctime_r(const struct tm *tm, char *buf)
+char *asctime_r(const struct tm *restrict tm, char *restrict buf)
 {
        return __asctime(tm, buf);
 }