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/flash/flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash/flash.h') diff --git a/src/flash/flash.h b/src/flash/flash.h index fd3c4c2..648bd73 100644 --- a/src/flash/flash.h +++ b/src/flash/flash.h @@ -326,7 +326,7 @@ flash_bank_t *get_flash_bank_by_num(int num); * @returns ERROR_OK on success, or an error indicating the problem. */ int flash_command_get_bank_by_num(struct command_context_s *cmd_ctx, - char *str, flash_bank_t **bank); + const char *str, flash_bank_t **bank); /** * Returns the flash bank like get_flash_bank_by_num(), without probing. * @param num The flash bank number. -- cgit v1.1