summaryrefslogtreecommitdiff
path: root/src/flash/lpc288x.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-19 08:16:58 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-19 08:16:58 +0000
commita88532bc6061ccc74ca08de161ec6fecf88a85b0 (patch)
tree7a1b0d1cf802cb5ed794340519d7103ec6270cd7 /src/flash/lpc288x.c
parent7d6b4b42f61debb058013c4179f29f7fa09d8548 (diff)
downloadopenocd+libswd-a88532bc6061ccc74ca08de161ec6fecf88a85b0.tar.gz
openocd+libswd-a88532bc6061ccc74ca08de161ec6fecf88a85b0.tar.bz2
openocd+libswd-a88532bc6061ccc74ca08de161ec6fecf88a85b0.tar.xz
openocd+libswd-a88532bc6061ccc74ca08de161ec6fecf88a85b0.zip
Zach Welch <zw@superlucidity.net> fix signed/unsigned comparisons
git-svn-id: svn://svn.berlios.de/openocd/trunk@1466 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc288x.c')
-rw-r--r--src/flash/lpc288x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c
index c9cfa457..1f478964 100644
--- a/src/flash/lpc288x.c
+++ b/src/flash/lpc288x.c
@@ -328,10 +328,11 @@ static int lpc288x_erase(struct flash_bank_s *bank, int first, int last)
static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
{
u8 page_buffer[FLASH_PAGE_SIZE];
- u32 i, status, source_offset,dest_offset;
+ u32 status, source_offset,dest_offset;
target_t *target = bank->target;
u32 bytes_remaining = count;
u32 first_sector, last_sector, sector, page;
+ int i;
/* probed? halted? */
status = lpc288x_system_ready(bank);