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
b154972b
Commit
b154972b
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
image_memory_t -> struct image_memory
Remove misleading typedef and redundant suffix from struct image_memory.
parent
1a4ff43a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/target/image.c
View file @
b154972b
...
...
@@ -740,7 +740,7 @@ int image_open(image_t *image, const char *url, const char *type_string)
return
ERROR_FAIL
;
}
image_memory
_t
*
image_memory
;
struct
image_memory
*
image_memory
;
image
->
num_sections
=
1
;
image
->
sections
=
malloc
(
sizeof
(
struct
image_section
));
...
...
@@ -748,7 +748,7 @@ int image_open(image_t *image, const char *url, const char *type_string)
image
->
sections
[
0
].
size
=
0xffffffff
;
image
->
sections
[
0
].
flags
=
0
;
image_memory
=
image
->
type_private
=
malloc
(
sizeof
(
image_memory
_t
));
image_memory
=
image
->
type_private
=
malloc
(
sizeof
(
struct
image_memory
));
image_memory
->
target
=
target
;
image_memory
->
cache
=
NULL
;
...
...
@@ -842,7 +842,7 @@ int image_read_section(image_t *image, int section, uint32_t offset, uint32_t si
}
else
if
(
image
->
type
==
IMAGE_MEMORY
)
{
image_memory
_t
*
image_memory
=
image
->
type_private
;
struct
image_memory
*
image_memory
=
image
->
type_private
;
uint32_t
address
=
image
->
sections
[
section
].
base_address
+
offset
;
*
size_read
=
0
;
...
...
@@ -974,7 +974,7 @@ void image_close(image_t *image)
}
else
if
(
image
->
type
==
IMAGE_MEMORY
)
{
image_memory
_t
*
image_memory
=
image
->
type_private
;
struct
image_memory
*
image_memory
=
image
->
type_private
;
if
(
image_memory
->
cache
)
{
...
...
src/target/image.h
View file @
b154972b
...
...
@@ -78,12 +78,12 @@ struct image_ihex
uint8_t
*
buffer
;
};
typedef
struct
image_memory
_s
struct
image_memory
{
struct
target_s
*
target
;
uint8_t
*
cache
;
uint32_t
cache_address
;
}
image_memory_t
;
};
typedef
struct
fileio_elf_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