Michael Bruck: fixed warnings

git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-03-07 16:18:56 +00:00
parent 081bc06112
commit d3f3f61498
8 changed files with 28 additions and 16 deletions

View File

@@ -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;