From ad36dc2c36831325e93112b55e895561dff29974 Mon Sep 17 00:00:00 2001 From: Sahil Patnayakuni Date: Sun, 24 Nov 2013 11:48:08 -0600 Subject: POSIX timers: Add restrict keyword + timer_create() + timer_settime() --- cpukit/posix/src/timercreate.c | 4 ++-- cpukit/posix/src/timersettime.c | 4 ++-- 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; -- cgit v1.2.3