summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/strptime.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-25 13:46:23 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-25 13:46:23 +0000
commitd482870337349732ad1c9f3715730fd32b6216d0 (patch)
treea7395d230c93fee8c52d2b4730963001bdf7149d /newlib/libc/time/strptime.c
parent3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (diff)
downloadcygnal-d482870337349732ad1c9f3715730fd32b6216d0.tar.gz
cygnal-d482870337349732ad1c9f3715730fd32b6216d0.tar.bz2
cygnal-d482870337349732ad1c9f3715730fd32b6216d0.zip
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/strptime.c')
-rw-r--r--newlib/libc/time/strptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/time/strptime.c b/newlib/libc/time/strptime.c
index 601f93e8a..d7dd7a2b2 100644
--- a/newlib/libc/time/strptime.c
+++ b/newlib/libc/time/strptime.c
@@ -153,9 +153,9 @@ set_week_number_mon4 (struct tm *timeptr, int wnum)
char *
//strptime (const char *buf, const char *format, struct tm *timeptr)
_DEFUN (strptime, (buf, format, timeptr),
- _CONST char *buf _AND
- _CONST char *format _AND
- struct tm *timeptr)
+ _CONST char *__restrict buf _AND
+ _CONST char *__restrict format _AND
+ struct tm *__restrict timeptr)
{
char c;
int ymd = 0;