diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-11-25 11:38:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-11-25 11:38:08 +0000 |
commit | 3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (patch) | |
tree | e194898fb1b64aa0997016e8359861ef48ede14e /winsup/cygwin/timer.cc | |
parent | bd1af1cab5cc78a5d97bdd9ba2e9e934fc80688e (diff) | |
download | cygnal-3073f26d6ab5d0ce902d5bfe75600e6577d903c9.tar.gz cygnal-3073f26d6ab5d0ce902d5bfe75600e6577d903c9.tar.bz2 cygnal-3073f26d6ab5d0ce902d5bfe75600e6577d903c9.zip |
Throughout, keep function definitions and declarations in sync with
newlib in terms of C99 "restrict" keyword.
Diffstat (limited to 'winsup/cygwin/timer.cc')
-rw-r--r-- | winsup/cygwin/timer.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/winsup/cygwin/timer.cc b/winsup/cygwin/timer.cc index 93b9cb592..5231499fb 100644 --- a/winsup/cygwin/timer.cc +++ b/winsup/cygwin/timer.cc @@ -1,6 +1,6 @@ /* timer.cc - Copyright 2004, 2005, 2006, 2008, 2010, 2011, 2012 Red Hat, Inc. + Copyright 2004, 2005, 2006, 2008, 2010, 2011, 2012, 2013 Red Hat, Inc. This file is part of Cygwin. @@ -295,7 +295,8 @@ timer_gettime (timer_t timerid, struct itimerspec *ovalue) } extern "C" int -timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid) +timer_create (clockid_t clock_id, struct sigevent *__restrict evp, + timer_t *__restrict timerid) { myfault efault; if (efault.faulted (EFAULT)) @@ -318,8 +319,9 @@ timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid) } extern "C" int -timer_settime (timer_t timerid, int flags, const struct itimerspec *value, - struct itimerspec *ovalue) +timer_settime (timer_t timerid, int flags, + const struct itimerspec *__restrict value, + struct itimerspec *__restrict ovalue) { timer_tracker *tt = (timer_tracker *) timerid; myfault efault; @@ -374,7 +376,8 @@ fixup_timers_after_fork () extern "C" int -setitimer (int which, const struct itimerval *value, struct itimerval *ovalue) +setitimer (int which, const struct itimerval *__restrict value, + struct itimerval *__restrict ovalue) { int ret; if (which != ITIMER_REAL) |