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
1a4ff43a
Commit
1a4ff43a
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
image_ihex_t -> struct image_ihex
Remove misleading typedef and redundant suffix from struct image_ihex.
parent
a87faf5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/target/image.c
View file @
1a4ff43a
...
...
@@ -149,7 +149,7 @@ static int identify_image_type(image_t *image, const char *type_string, const ch
static
int
image_ihex_buffer_complete
(
image_t
*
image
)
{
image_ihex
_t
*
ihex
=
image
->
type_private
;
struct
image_ihex
*
ihex
=
image
->
type_private
;
struct
fileio
*
fileio
=
&
ihex
->
fileio
;
uint32_t
full_address
=
0x0
;
uint32_t
cooked_bytes
;
...
...
@@ -697,9 +697,9 @@ int image_open(image_t *image, const char *url, const char *type_string)
}
else
if
(
image
->
type
==
IMAGE_IHEX
)
{
image_ihex
_t
*
image_ihex
;
struct
image_ihex
*
image_ihex
;
image_ihex
=
image
->
type_private
=
malloc
(
sizeof
(
image_ihex
_t
));
image_ihex
=
image
->
type_private
=
malloc
(
sizeof
(
struct
image_ihex
));
if
((
retval
=
fileio_open
(
&
image_ihex
->
fileio
,
url
,
FILEIO_READ
,
FILEIO_TEXT
))
!=
ERROR_OK
)
{
...
...
@@ -944,7 +944,7 @@ void image_close(image_t *image)
}
else
if
(
image
->
type
==
IMAGE_IHEX
)
{
image_ihex
_t
*
image_ihex
=
image
->
type_private
;
struct
image_ihex
*
image_ihex
=
image
->
type_private
;
fileio_close
(
&
image_ihex
->
fileio
);
...
...
src/target/image.h
View file @
1a4ff43a
...
...
@@ -72,11 +72,11 @@ struct image_binary
struct
fileio
fileio
;
};
typedef
struct
image_ihex
_s
struct
image_ihex
{
struct
fileio
fileio
;
uint8_t
*
buffer
;
}
image_ihex_t
;
};
typedef
struct
image_memory_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