Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
a87faf5b
Commit
a87faf5b
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
image_binary_t -> struct image_binary
Remove misleading typedef and redundant suffix from struct image_binary.
parent
24df46d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/target/image.c
View file @
a87faf5b
...
...
@@ -680,9 +680,9 @@ int image_open(image_t *image, const char *url, const char *type_string)
if
(
image
->
type
==
IMAGE_BINARY
)
{
image_binary
_t
*
image_binary
;
struct
image_binary
*
image_binary
;
image_binary
=
image
->
type_private
=
malloc
(
sizeof
(
image_binary
_t
));
image_binary
=
image
->
type_private
=
malloc
(
sizeof
(
struct
image_binary
));
if
((
retval
=
fileio_open
(
&
image_binary
->
fileio
,
url
,
FILEIO_READ
,
FILEIO_BINARY
))
!=
ERROR_OK
)
{
...
...
@@ -811,7 +811,7 @@ int image_read_section(image_t *image, int section, uint32_t offset, uint32_t si
if
(
image
->
type
==
IMAGE_BINARY
)
{
image_binary
_t
*
image_binary
=
image
->
type_private
;
struct
image_binary
*
image_binary
=
image
->
type_private
;
/* only one section in a plain binary */
if
(
section
!=
0
)
...
...
@@ -938,7 +938,7 @@ void image_close(image_t *image)
{
if
(
image
->
type
==
IMAGE_BINARY
)
{
image_binary
_t
*
image_binary
=
image
->
type_private
;
struct
image_binary
*
image_binary
=
image
->
type_private
;
fileio_close
(
&
image_binary
->
fileio
);
}
...
...
src/target/image.h
View file @
a87faf5b
...
...
@@ -67,10 +67,10 @@ typedef struct image_s
uint32_t
start_address
;
/* start address, if one is set */
}
image_t
;
typedef
struct
image_binary
_s
struct
image_binary
{
struct
fileio
fileio
;
}
image_binary_t
;
};
typedef
struct
image_ihex_s
{
...
...
Write
Preview
Supports
Markdown
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