diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-23 01:25:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-23 01:25:47 +0000 |
commit | 9cd69d84efeb1fbbc59b468760be13430b585964 (patch) | |
tree | 7b063b08271195251c55353394c5314b5ba70eca /newlib/libc/include/sys/time.h | |
parent | 849fe25d0e50b015bcbe531113cd400ca0b8269a (diff) | |
download | cygnal-9cd69d84efeb1fbbc59b468760be13430b585964.tar.gz cygnal-9cd69d84efeb1fbbc59b468760be13430b585964.tar.bz2 cygnal-9cd69d84efeb1fbbc59b468760be13430b585964.zip |
2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
* libc/include/sys/time.h (gettimeofday): Add restrict keyword.
(setitimer): Likewise.
* libc/sys/rdos/gettod.c (gettimeofday): Likewise.
* libc/sys/rtems/crt0.c (gettimeofday): Likewise.
Diffstat (limited to 'newlib/libc/include/sys/time.h')
-rw-r--r-- | newlib/libc/include/sys/time.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 120ef553a..19325804b 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -74,12 +74,13 @@ struct itimerval { int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz)); #endif -int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz)); +int _EXFUN(gettimeofday, (struct timeval *__restrict __p, + void *__restrict __tz)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); int _EXFUN(getitimer, (int __which, struct itimerval *__value)); -int _EXFUN(setitimer, (int __which, const struct itimerval *__value, - struct itimerval *__ovalue)); +int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, + struct itimerval *__restrict __ovalue)); #ifdef __cplusplus } |