image_memory_t -> struct image_memory
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:43:14 +0000 (08:43 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:11 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct image_memory.

src/target/image.c
src/target/image.h

index 60784c8bde74e3f12b691c8bd6a655136a3b79a9..fbd5d7e78154e64e3897bb58b32cfffa27517fbb 100644 (file)
@@ -740,7 +740,7 @@ int image_open(image_t *image, const char *url, const char *type_string)
                        return ERROR_FAIL;
                }
 
                        return ERROR_FAIL;
                }
 
-               image_memory_t *image_memory;
+               struct image_memory *image_memory;
 
                image->num_sections = 1;
                image->sections = malloc(sizeof(struct image_section));
 
                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->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;
 
                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)
        {
        }
        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;
                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)
        {
        }
        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)
                {
 
                if (image_memory->cache)
                {
index 20d31518c3fbee5e6130a08b20e32bfa85839a2a..5969ddebaa09242f775cf34e76fc76d91ea10511 100644 (file)
@@ -78,12 +78,12 @@ struct image_ihex
        uint8_t *buffer;
 };
 
        uint8_t *buffer;
 };
 
-typedef struct image_memory_s
+struct image_memory
 {
        struct target_s *target;
        uint8_t *cache;
        uint32_t cache_address;
 {
        struct target_s *target;
        uint8_t *cache;
        uint32_t cache_address;
-} image_memory_t;
+};
 
 typedef struct fileio_elf_s
 {
 
 typedef struct fileio_elf_s
 {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)