diff options
author | Christian Eggers <ceggers@gmx.de> | 2014-02-14 21:48:52 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-03-04 20:17:34 +0000 |
commit | 9b2577742cc49683ab0ea8506d93e3e285b53bbd (patch) | |
tree | 6e9bcaf54e5ea440d87c37eb8b15ce1f3bfe5e95 /src/target/image.c | |
parent | 537b06a810778995d7f79d9120f4063f33dee635 (diff) |
Constify received GDB packet
v2:
- Split work into separate patches
The received packet will not be altered in any of the processing functions.
Some it can be made "const".
Change-Id: I7bb410224cf6daa74a6c494624176ccb9ae638ac
Signed-off-by: Christian Eggers <ceggers@gmx.de>
Reviewed-on: http://openocd.zylin.com/1919
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/image.c')
-rw-r--r-- | src/target/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/image.c b/src/target/image.c index 8bcba349..07420b1f 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -902,7 +902,7 @@ int image_read_section(struct image *image, return ERROR_OK; } -int image_add_section(struct image *image, uint32_t base, uint32_t size, int flags, uint8_t *data) +int image_add_section(struct image *image, uint32_t base, uint32_t size, int flags, uint8_t const *data) { struct imagesection *section; |