Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
9b8943b5
Commit
9b8943b5
authored
Nov 26, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/hal: buglet fix: write ports array from index 0
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
e6b79e69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+3
-3
No files found.
userspace/wrsw_hal/hal_ports.c
View file @
9b8943b5
...
...
@@ -206,7 +206,7 @@ static int hal_port_init(const char *name, int index)
* intializes them one after another. */
int
hal_port_init_all
()
{
int
index
=
0
,
i
;
int
index
,
i
;
char
port_name
[
128
];
struct
hal_shmem_header
*
hal_hdr
;
struct
wrs_shm_head
*
head
;
...
...
@@ -255,8 +255,8 @@ int hal_port_init_all()
hal_hdr
->
ports
=
ports
;
for
(
;;
)
{
if
(
!
hal_config_iterate
(
"ports"
,
index
++
,
for
(
index
=
0
;
index
<
HAL_MAX_PORTS
;
index
++
)
{
if
(
!
hal_config_iterate
(
"ports"
,
index
,
port_name
,
sizeof
(
port_name
)))
break
;
hal_port_init
(
port_name
,
index
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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