Module: xenomai-forge
Branch: next
Commit: 209e5a892694e6eb578f728fa3ebacb0b7c3c26a
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=209e5a892694e6eb578f728fa3ebacb0b7c3c26a

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Apr 28 10:51:33 2014 +0200

lib/cobalt: constify timespec args to pthread_make_periodic_np()

---

 include/cobalt/pthread.h |    4 ++--
 lib/cobalt/thread.c      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/cobalt/pthread.h b/include/cobalt/pthread.h
index 47fb432..2a981cc 100644
--- a/include/cobalt/pthread.h
+++ b/include/cobalt/pthread.h
@@ -142,8 +142,8 @@ COBALT_DECL(int, 
pthread_condattr_setclock(pthread_condattr_t *attr,
 
 int pthread_make_periodic_np(pthread_t thread,
                             clockid_t clk_id,
-                            struct timespec *starttp,
-                            struct timespec *periodtp);
+                            const struct timespec *__restrict__ starttp,
+                            const struct timespec *__restrict__ periodtp);
 
 int pthread_wait_np(unsigned long *overruns_r);
 
diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 785451c..0d7d7c8 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -398,8 +398,8 @@ COBALT_IMPL(int, pthread_create, (pthread_t *tid,
 
 int pthread_make_periodic_np(pthread_t thread,
                             clockid_t clk_id,
-                            struct timespec *starttp,
-                            struct timespec *periodtp)
+                            const struct timespec *__restrict__ starttp,
+                            const struct timespec *__restrict__ periodtp)
 {
        return -XENOMAI_SKINCALL4(__cobalt_muxid,
                                  sc_cobalt_thread_make_periodic,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to