Commit ca894fa4 authored by yoogx's avatar yoogx

* Do not use C99 loop initialization

parent b8c1ed12
Pipeline #358 skipped
......@@ -113,8 +113,9 @@ __po_hi_task_id __po_hi_get_task_id (void) {
#if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX)
pthread_t pthread_id = pthread_self();
int i;
for (int i = 0; i < __PO_HI_NB_TASKS; i++) {
for (i = 0; i < __PO_HI_NB_TASKS; i++) {
if (pthread_id == tasks[i].tid) {
return tasks[i].id;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment