[rtems commit] rtems: Fix rtems_task_restart() argument type

Sebastian Huber sebh at rtems.org
Thu Dec 6 10:03:16 UTC 2018


Module:    rtems
Branch:    master
Commit:    4e46ba8460d0d3514179dee2e4bbf17cde94e904
Changeset: http://git.rtems.org/rtems/commit/?id=4e46ba8460d0d3514179dee2e4bbf17cde94e904

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec  6 10:49:43 2018 +0100

rtems: Fix rtems_task_restart() argument type

Close #3637.

---

 cpukit/include/rtems/rtems/tasks.h | 6 +++---
 cpukit/rtems/src/taskrestart.c     | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index 55863a9..b75ec3e 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -238,13 +238,13 @@ rtems_status_code rtems_task_mode(
  * point with the new argument.
  *
  * @param[in] id is the thread id
- * @param[in] arg is the thread argument
+ * @param[in] argument is the thread argument
  *
  * @retval RTEMS_SUCCESSFUL if successful or error code if unsuccessful
  */
 rtems_status_code rtems_task_restart(
-  rtems_id   id,
-  uint32_t   arg
+  rtems_id            id,
+  rtems_task_argument argument
 );
 
 /**
diff --git a/cpukit/rtems/src/taskrestart.c b/cpukit/rtems/src/taskrestart.c
index 9070fe4..e110bb3 100644
--- a/cpukit/rtems/src/taskrestart.c
+++ b/cpukit/rtems/src/taskrestart.c
@@ -22,8 +22,8 @@
 #include <rtems/score/threadimpl.h>
 
 rtems_status_code rtems_task_restart(
-  rtems_id  id,
-  uint32_t  argument
+  rtems_id            id,
+  rtems_task_argument argument
 )
 {
   Thread_Control           *the_thread;



More information about the vc mailing list