forked from auracaster/openocd
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.
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
|
||||
reg_arch_type_t *reg_arch_types = NULL;
|
||||
|
||||
reg_t* register_get_by_name(reg_cache_t *first, char *name, int search_all)
|
||||
reg_t* register_get_by_name(reg_cache_t *first,
|
||||
const char *name, bool search_all)
|
||||
{
|
||||
int i;
|
||||
reg_cache_t *cache = first;
|
||||
|
||||
Reference in New Issue
Block a user