summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:43:02 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:11 -0800
commita87faf5b66fabb03cdf15a54185f15b91da779c2 (patch)
treef5a977d4eb6518a64cbba714f19ca578ff7b521a /src/target
parent24df46d0676630c90f04ee49b96533f5fddca6cd (diff)
downloadopenocd_libswd-a87faf5b66fabb03cdf15a54185f15b91da779c2.tar.gz
openocd_libswd-a87faf5b66fabb03cdf15a54185f15b91da779c2.tar.bz2
openocd_libswd-a87faf5b66fabb03cdf15a54185f15b91da779c2.tar.xz
openocd_libswd-a87faf5b66fabb03cdf15a54185f15b91da779c2.zip
image_binary_t -> struct image_binary
Remove misleading typedef and redundant suffix from struct image_binary.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/image.c8
-rw-r--r--src/target/image.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/target/image.c b/src/target/image.c
index 0247310f..e8affb6d 100644
--- a/src/target/image.c
+++ b/src/target/image.c
@@ -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);
}
diff --git a/src/target/image.h b/src/target/image.h
index 746f3d24..b150b90c 100644
--- a/src/target/image.h
+++ b/src/target/image.h
@@ -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
{