warnings: use more 'const' for char *
[fw/openocd] / src / target / register.h
index 0cd0ddfe467d91ce8406021204d4e1ecae434ef3..4b45fd3c455791ac3b7d4c47653d1cc0925050b5 100644 (file)
@@ -27,7 +27,7 @@ struct target;
 
 struct reg
 {
-       char *name;
+       const char *name;
        void *value;
        bool dirty;
        bool valid;
@@ -38,7 +38,7 @@ struct reg
 
 struct reg_cache
 {
-       char *name;
+       const char *name;
        struct reg_cache *next;
        struct reg *reg_list;
        unsigned num_regs;