diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-25 17:46:23 +0400 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-25 17:46:23 +0400 |
commit | d482870337349732ad1c9f3715730fd32b6216d0 (patch) | |
tree | a7395d230c93fee8c52d2b4730963001bdf7149d /newlib/libc/time/asctime_r.c | |
parent | 3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (diff) |
2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
* libc/include/time.h (time): Add restrict keyword.
* libc/include/wchar.h (wcsftime): Add restrict keyword.
* libc/time/asctime_r.c (asctime_r): Same.
* libc/time/gmtime_r.c (gmtime_r): Same.
* libc/time/lcltime_r.c (lcltime_r): Same.
* libc/time/strftime.c (strftime): Same.
* libc/time/strptime.c (strptime): Same.
* libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same.
* libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
Diffstat (limited to 'newlib/libc/time/asctime_r.c')
-rw-r--r-- | newlib/libc/time/asctime_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/time/asctime_r.c b/newlib/libc/time/asctime_r.c index e8abff1c0..2ec53698e 100644 --- a/newlib/libc/time/asctime_r.c +++ b/newlib/libc/time/asctime_r.c @@ -7,8 +7,8 @@ char * _DEFUN (asctime_r, (tim_p, result), - _CONST struct tm *tim_p _AND - char *result) + _CONST struct tm *__restrict tim_p _AND + char *__restrict result) { static _CONST char day_name[7][3] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" |