summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_getparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_getparam.c')
-rw-r--r--nuttx/sched/sched_getparam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sched_getparam.c b/nuttx/sched/sched_getparam.c
index 47eab4988..9fb829474 100644
--- a/nuttx/sched/sched_getparam.c
+++ b/nuttx/sched/sched_getparam.c
@@ -98,8 +98,8 @@
int sched_getparam (pid_t pid, struct sched_param * param)
{
- FAR _TCB *rtcb;
- FAR _TCB *tcb;
+ FAR struct tcb_s *rtcb;
+ FAR struct tcb_s *tcb;
int ret = OK;
if (!param)
@@ -109,7 +109,7 @@ int sched_getparam (pid_t pid, struct sched_param * param)
/* Check if the task to restart is the calling task */
- rtcb = (FAR _TCB*)g_readytorun.head;
+ rtcb = (FAR struct tcb_s*)g_readytorun.head;
if ((pid == 0) || (pid == rtcb->pid))
{
/* Return the priority if the calling task. */