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:
Zachary T Welch
2009-11-10 04:27:15 -08:00
parent 9741e126fd
commit ca594adb5a
15 changed files with 22 additions and 20 deletions
+2 -1
View File
@@ -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;