From ca594adb5a71f2bf60c1380172b8e61b075d9479 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 10 Nov 2009 04:27:15 -0800 Subject: add const keyword to some APIs Add 'const' keyword to 'char *' parameters to allow command handlers to pass constant string arguments. These changes allow the 'args' command handler to be changed to 'const' in a subsequent patch. --- src/target/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/image.h') diff --git a/src/target/image.h b/src/target/image.h index 8b70b3b..30240d5 100644 --- a/src/target/image.h +++ b/src/target/image.h @@ -100,7 +100,7 @@ typedef struct image_mot_s uint8_t *buffer; } image_mot_t; -int image_open(image_t *image, char *url, char *type_string); +int image_open(image_t *image, const char *url, const char *type_string); int image_read_section(image_t *image, int section, uint32_t offset, uint32_t size, uint8_t *buffer, uint32_t *size_read); void image_close(image_t *image); -- cgit v1.1