diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-10 04:27:15 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-11 11:53:22 -0800 |
commit | ca594adb5a71f2bf60c1380172b8e61b075d9479 (patch) | |
tree | c4702f927f5991c0075479259e0562db1c941cc4 /src/flash/nand.h | |
parent | 9741e126fd854815460296ad47d027129c7f17bf (diff) | |
download | riscv-openocd-ca594adb5a71f2bf60c1380172b8e61b075d9479.zip riscv-openocd-ca594adb5a71f2bf60c1380172b8e61b075d9479.tar.gz riscv-openocd-ca594adb5a71f2bf60c1380172b8e61b075d9479.tar.bz2 |
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.
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r-- | src/flash/nand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h index 16558c2..5b19d5a 100644 --- a/src/flash/nand.h +++ b/src/flash/nand.h @@ -226,7 +226,7 @@ int nand_init(struct command_context_s *cmd_ctx); /// helper for parsing a nand device command argument string int nand_command_get_device_by_num(struct command_context_s *cmd_ctx, - char *str, nand_device_t **device); + const char *str, nand_device_t **device); #define ERROR_NAND_DEVICE_INVALID (-1100) |