diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:43:23 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:11 -0800 |
commit | ef36a7fb3b87bddc14ad9c5d98fde1d041a0de2d (patch) | |
tree | e8e33b1bd57c7e7f56f7d74e961c8c2343ef01ad | |
parent | b154972bdbcbda1ae8e05271c0db556fade8dbef (diff) | |
download | riscv-openocd-ef36a7fb3b87bddc14ad9c5d98fde1d041a0de2d.zip riscv-openocd-ef36a7fb3b87bddc14ad9c5d98fde1d041a0de2d.tar.gz riscv-openocd-ef36a7fb3b87bddc14ad9c5d98fde1d041a0de2d.tar.bz2 |
image_mot_t -> struct image_mot
Remove misleading typedef and redundant suffix from struct image_mot.
-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 fbd5d7e..608ac59 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -501,7 +501,7 @@ static int image_elf_read_section(image_t *image, int section, uint32_t offset, static int image_mot_buffer_complete(image_t *image) { - image_mot_t *mot = image->type_private; + struct image_mot *mot = image->type_private; struct fileio *fileio = &mot->fileio; uint32_t full_address = 0x0; uint32_t cooked_bytes; @@ -756,9 +756,9 @@ int image_open(image_t *image, const char *url, const char *type_string) } else if (image->type == IMAGE_SRECORD) { - image_mot_t *image_mot; + struct image_mot *image_mot; - image_mot = image->type_private = malloc(sizeof(image_mot_t)); + image_mot = image->type_private = malloc(sizeof(struct image_mot)); if ((retval = fileio_open(&image_mot->fileio, url, FILEIO_READ, FILEIO_TEXT)) != ERROR_OK) { @@ -984,7 +984,7 @@ void image_close(image_t *image) } else if (image->type == IMAGE_SRECORD) { - image_mot_t *image_mot = image->type_private; + struct image_mot *image_mot = image->type_private; fileio_close(&image_mot->fileio); diff --git a/src/target/image.h b/src/target/image.h index 5969dde..608336b 100644 --- a/src/target/image.h +++ b/src/target/image.h @@ -94,11 +94,11 @@ typedef struct fileio_elf_s uint8_t endianness; } image_elf_t; -typedef struct image_mot_s +struct image_mot { struct fileio fileio; uint8_t *buffer; -} image_mot_t; +}; int image_open(image_t *image, const char *url, const char *type_string); int image_read_section(image_t *image, int section, uint32_t offset, |