Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
1affd5c1
Commit
1affd5c1
authored
13 years ago
by
Matthias Fuchs
Committed by
Wolfgang Denk
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
board/esd/cpci405/cpci405.c: Fix GCC 4.6 warning
Signed-off-by:
Matthias Fuchs
<
matthias.fuchs@esd.eu
>
parent
ce2acd37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/esd/cpci405/cpci405.c
+3
-5
3 additions, 5 deletions
board/esd/cpci405/cpci405.c
with
3 additions
and
5 deletions
board/esd/cpci405/cpci405.c
+
3
−
5
View file @
1affd5c1
...
...
@@ -656,7 +656,6 @@ int do_onewire(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int
i
;
unsigned
char
ow_id
[
6
];
char
str
[
32
];
unsigned
char
ow_crc
;
/*
* Clear 1-wire bit (open drain with pull-up)
...
...
@@ -675,11 +674,10 @@ int do_onewire(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
OWReadByte
();
/* skip family code ( == 0x01) */
for
(
i
=
0
;
i
<
6
;
i
++
)
ow_id
[
i
]
=
OWReadByte
();
ow_crc
=
OWReadByte
();
/* read crc */
OWReadByte
();
/* read crc */
sprintf
(
str
,
"%08X%04X"
,
*
(
unsigned
int
*
)
&
ow_id
[
0
],
*
(
unsigned
short
*
)
&
ow_id
[
4
]);
sprintf
(
str
,
"%02X%02X%02X%02X%02X%02X"
,
ow_id
[
0
],
ow_id
[
1
],
ow_id
[
2
],
ow_id
[
3
],
ow_id
[
4
],
ow_id
[
5
]);
printf
(
"Setting environment variable 'ow_id' to %s
\n
"
,
str
);
setenv
(
"ow_id"
,
str
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment