Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
ca894fa4
Commit
ca894fa4
authored
Jun 20, 2016
by
yoogx
Browse files
* Do not use C99 loop initialization
parent
b8c1ed12
Pipeline
#358
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/po_hi_task.c
View file @
ca894fa4
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment