summaryrefslogtreecommitdiff
path: root/src/flash/ecos.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
commitd3f3f6149867c6ccd5d10ac469df1d7af95cbf19 (patch)
tree01639019fa8733355e2188c69ce3103a528ea51b /src/flash/ecos.c
parent081bc0611209ff2d78857a2e9430b77ed7766963 (diff)
downloadopenocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.gz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.bz2
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.xz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.zip
Michael Bruck: fixed warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/ecos.c')
-rw-r--r--src/flash/ecos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/flash/ecos.c b/src/flash/ecos.c
index 6a312ced..4127cf53 100644
--- a/src/flash/ecos.c
+++ b/src/flash/ecos.c
@@ -21,6 +21,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include "replacements.h"
@@ -342,7 +344,7 @@ int eCosBoard_flash(ecosflash_flash_bank_t *info, void *data, u32 address, u32 l
}
int retval;
- retval=target_write_buffer(target, buffer, t, ((char *)data)+i);
+ retval=target_write_buffer(target, buffer, t, ((u8 *)data)+i);
if (retval != ERROR_OK)
return retval;