summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSahil Patnayakuni <sahil.patnayakuni@gmail.com>2013-11-24 11:48:08 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-29 17:24:41 -0600
commitad36dc2c36831325e93112b55e895561dff29974 (patch)
treeab6e46a39a520c5fe109cd7c722663f1503a9c81
parentgettimeofday: Add restrict keyword (diff)
downloadrtems-ad36dc2c36831325e93112b55e895561dff29974.tar.bz2
POSIX timers: Add restrict keyword
+ timer_create() + timer_settime()
-rw-r--r--cpukit/posix/src/timercreate.c4
-rw-r--r--cpukit/posix/src/timersettime.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/posix/src/timercreate.c b/cpukit/posix/src/timercreate.c
index 3af7fc4459..46258a460f 100644
--- a/cpukit/posix/src/timercreate.c
+++ b/cpukit/posix/src/timercreate.c
@@ -34,8 +34,8 @@
int timer_create(
clockid_t clock_id,
- struct sigevent *evp,
- timer_t *timerid
+ struct sigevent *__restrict evp,
+ timer_t *__restrict timerid
)
{
POSIX_Timer_Control *ptimer;
diff --git a/cpukit/posix/src/timersettime.c b/cpukit/posix/src/timersettime.c
index c9040a912c..3c37e7bea3 100644
--- a/cpukit/posix/src/timersettime.c
+++ b/cpukit/posix/src/timersettime.c
@@ -33,8 +33,8 @@
int timer_settime(
timer_t timerid,
int flags,
- const struct itimerspec *value,
- struct itimerspec *ovalue
+ const struct itimerspec *__restrict value,
+ struct itimerspec *__restrict ovalue
)
{
POSIX_Timer_Control *ptimer;