aboutsummaryrefslogtreecommitdiff
path: root/src/include/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/target.h')
-rw-r--r--src/include/target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/target.h b/src/include/target.h
index a2369e3..5db79a7 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -180,9 +180,9 @@ struct target_s {
/* Flash memory access functions */
const char *xml_mem_map;
- int (*flash_erase)(struct target_s *target, uint32_t addr, int len);
+ int (*flash_erase)(struct target_s *target, uint32_t addr, size_t len);
int (*flash_write)(struct target_s *target, uint32_t dest,
- const uint8_t *src, int len);
+ const uint8_t *src, size_t len);
/* Host I/O support */
void (*hostio_reply)(target *t, int32_t retcode, uint32_t errcode);