diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:32:28 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:14 -0800 |
commit | 96b62996d2d81b09a48bf253bc9e60e637f687bd (patch) | |
tree | 478adc1359a4387ce1ee2a4d8f22a8de4fe7402e /src/server | |
parent | 2f6e56e38320350bb300b363d0b3737fa8d1f3ea (diff) | |
download | openocd+libswd-96b62996d2d81b09a48bf253bc9e60e637f687bd.tar.gz openocd+libswd-96b62996d2d81b09a48bf253bc9e60e637f687bd.tar.bz2 openocd+libswd-96b62996d2d81b09a48bf253bc9e60e637f687bd.tar.xz openocd+libswd-96b62996d2d81b09a48bf253bc9e60e637f687bd.zip |
flash_bank_t -> struct flash_bank
Remove misleading typedef and redundant suffix from struct flash_bank.
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 84ad76c9..f49f352f 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1520,7 +1520,7 @@ static int decode_xfer_read(char *buf, char **annex, int *ofs, unsigned int *len return 0; } -int gdb_calc_blocksize(flash_bank_t *bank) +int gdb_calc_blocksize(struct flash_bank *bank) { uint32_t i; uint32_t block_size = 0xffffffff; @@ -1538,9 +1538,9 @@ int gdb_calc_blocksize(flash_bank_t *bank) static int compare_bank (const void * a, const void * b) { - flash_bank_t *b1, *b2; - b1=*((flash_bank_t **)a); - b2=*((flash_bank_t **)b); + struct flash_bank *b1, *b2; + b1=*((struct flash_bank **)a); + b2=*((struct flash_bank **)b); if (b1->base == b2->base) { @@ -1661,7 +1661,7 @@ int gdb_query_packet(struct connection *connection, struct target *target, char * Normally we only execute this code once, but no big deal if we * have to regenerate it a couple of times. */ - flash_bank_t *p; + struct flash_bank *p; char *xml = NULL; int size = 0; int pos = 0; @@ -1685,7 +1685,7 @@ int gdb_query_packet(struct connection *connection, struct target *target, char read/write) by default for GDB. GDB does not have a concept of non-cacheable read/write memory. */ - flash_bank_t **banks = malloc(sizeof(flash_bank_t *)*flash_get_bank_count()); + struct flash_bank **banks = malloc(sizeof(struct flash_bank *)*flash_get_bank_count()); int i; for (i = 0; i < flash_get_bank_count(); i++) @@ -1701,7 +1701,7 @@ int gdb_query_packet(struct connection *connection, struct target *target, char banks[i]=p; } - qsort(banks, flash_get_bank_count(), sizeof(flash_bank_t *), compare_bank); + qsort(banks, flash_get_bank_count(), sizeof(struct flash_bank *), compare_bank); uint32_t ram_start = 0; for (i = 0; i < flash_get_bank_count(); i++) |