aboutsummaryrefslogtreecommitdiff
path: root/src/flash/flash.c
diff options
context:
space:
mode:
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-12-17 22:12:57 +0000
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-12-17 22:12:57 +0000
commited1e9d6abdece4fbf6251a11f0eca3c921221048 (patch)
tree3c38d8d383ee95bb801a157208f96c1b1f6bd760 /src/flash/flash.c
parent9491aa15cd6d07fb12132b4b4160d10cdfc013e6 (diff)
- only some cosmetic changes, convert \r\n to unix
git-svn-id: svn://svn.berlios.de/openocd/trunk@239 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r--src/flash/flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c
index 4b18bc35..653a7ab2 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -176,8 +176,8 @@ int handle_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char
c->base = strtoul(args[1], NULL, 0);
c->size = strtoul(args[2], NULL, 0);
c->chip_width = strtoul(args[3], NULL, 0);
- c->bus_width = strtoul(args[4], NULL, 0);
- c->num_sectors = 0;
+ c->bus_width = strtoul(args[4], NULL, 0);
+ c->num_sectors = 0;
c->sectors = NULL;
c->next = NULL;
@@ -563,7 +563,7 @@ int handle_flash_write_image_command(struct command_context_s *cmd_ctx, char *cm
}
image.start_address_set = 0;
-
+
retval = image_open(&image, args[0], (argc == 3) ? args[2] : NULL);
if (retval != ERROR_OK)
{