summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/rtems/include/rtems/rtems/tasks.h14
-rw-r--r--c/src/exec/rtems/src/taskvariableadd.c4
-rw-r--r--cpukit/rtems/include/rtems/rtems/tasks.h14
-rw-r--r--cpukit/rtems/src/taskvariableadd.c4
4 files changed, 22 insertions, 14 deletions
diff --git a/c/src/exec/rtems/include/rtems/rtems/tasks.h b/c/src/exec/rtems/include/rtems/rtems/tasks.h
index 65bf95a9c6..d7147586a8 100644
--- a/c/src/exec/rtems/include/rtems/rtems/tasks.h
+++ b/c/src/exec/rtems/include/rtems/rtems/tasks.h
@@ -150,11 +150,15 @@ typedef struct {
* Per task variable structure
*/
-typedef struct {
- struct rtems_task_variable_t *next;
- int *ptr;
- int var;
-} rtems_task_variable_t;
+struct rtems_task_variable_tt;
+
+struct rtems_task_variable_tt {
+ struct rtems_task_variable_tt *next;
+ int *ptr;
+ int var;
+};
+
+typedef struct rtems_task_variable_tt rtems_task_variable_t;
/*
* This is the API specific information required by each thread for
diff --git a/c/src/exec/rtems/src/taskvariableadd.c b/c/src/exec/rtems/src/taskvariableadd.c
index b3649ec8c3..1bc38bdf46 100644
--- a/c/src/exec/rtems/src/taskvariableadd.c
+++ b/c/src/exec/rtems/src/taskvariableadd.c
@@ -67,8 +67,8 @@ rtems_status_code rtems_task_variable_add(
* Now allocate memory for this task variable.
*/
- new = (struct rtems_task_variable_t *)
- _Workspace_Allocate(sizeof(struct rtems_task_variable_t));
+ new = (rtems_task_variable_t *)
+ _Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
index 65bf95a9c6..d7147586a8 100644
--- a/cpukit/rtems/include/rtems/rtems/tasks.h
+++ b/cpukit/rtems/include/rtems/rtems/tasks.h
@@ -150,11 +150,15 @@ typedef struct {
* Per task variable structure
*/
-typedef struct {
- struct rtems_task_variable_t *next;
- int *ptr;
- int var;
-} rtems_task_variable_t;
+struct rtems_task_variable_tt;
+
+struct rtems_task_variable_tt {
+ struct rtems_task_variable_tt *next;
+ int *ptr;
+ int var;
+};
+
+typedef struct rtems_task_variable_tt rtems_task_variable_t;
/*
* This is the API specific information required by each thread for
diff --git a/cpukit/rtems/src/taskvariableadd.c b/cpukit/rtems/src/taskvariableadd.c
index b3649ec8c3..1bc38bdf46 100644
--- a/cpukit/rtems/src/taskvariableadd.c
+++ b/cpukit/rtems/src/taskvariableadd.c
@@ -67,8 +67,8 @@ rtems_status_code rtems_task_variable_add(
* Now allocate memory for this task variable.
*/
- new = (struct rtems_task_variable_t *)
- _Workspace_Allocate(sizeof(struct rtems_task_variable_t));
+ new = (rtems_task_variable_t *)
+ _Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;