summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:43:09 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:11 -0800
commit1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d (patch)
treedfc35f9be2a1ce9e51ef7263f5b8e3a7aece91b4 /src
parenta87faf5b66fabb03cdf15a54185f15b91da779c2 (diff)
downloadopenocd_libswd-1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d.tar.gz
openocd_libswd-1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d.tar.bz2
openocd_libswd-1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d.tar.xz
openocd_libswd-1a4ff43a7ce4463e7b37f893ca185b055ec6fa9d.zip
image_ihex_t -> struct image_ihex
Remove misleading typedef and redundant suffix from struct image_ihex.
Diffstat (limited to 'src')
-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 e8affb6d..60784c8b 100644
--- a/src/target/image.c
+++ b/src/target/image.c
@@ -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);
diff --git a/src/target/image.h b/src/target/image.h
index b150b90c..20d31518 100644
--- a/src/target/image.h
+++ b/src/target/image.h
@@ -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
{