diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:43:14 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:11 -0800 |
commit | b154972bdbcbda1ae8e05271c0db556fade8dbef (patch) | |
tree | 5bb9d0290d2298cd3ce69e227a213de604772f91 | |
parent | 1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d (diff) | |
download | openocd+libswd-b154972bdbcbda1ae8e05271c0db556fade8dbef.tar.gz openocd+libswd-b154972bdbcbda1ae8e05271c0db556fade8dbef.tar.bz2 openocd+libswd-b154972bdbcbda1ae8e05271c0db556fade8dbef.tar.xz openocd+libswd-b154972bdbcbda1ae8e05271c0db556fade8dbef.zip |
image_memory_t -> struct image_memory
Remove misleading typedef and redundant suffix from struct image_memory.
-rw-r--r-- | src/target/image.c | 8 | ||||
-rw-r--r-- | src/target/image.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/target/image.c b/src/target/image.c index 60784c8b..fbd5d7e7 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -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) { diff --git a/src/target/image.h b/src/target/image.h index 20d31518..5969ddeb 100644 --- a/src/target/image.h +++ b/src/target/image.h @@ -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 { |