aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2015-03-14 15:18:22 -0700
committerGareth McMullin2015-03-14 15:18:22 -0700
commit6f5b1873d7b986fe7b3bc1f267bae9f7649630a5 (patch)
tree81246a079184046887e2accd5585bd916d426584 /src/include
parentf5c856af3b3b0155050e793f50c29965d2c8326d (diff)
Use size_t for sizes in flash functions. Fix all sign compare warnings.
Diffstat (limited to 'src/include')
-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);