warnings: use more 'const' for char *
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -37,7 +37,7 @@ struct mem_param
|
||||
|
||||
struct reg_param
|
||||
{
|
||||
char *reg_name;
|
||||
const char *reg_name;
|
||||
uint32_t size;
|
||||
uint8_t *value;
|
||||
enum param_direction direction;
|
||||
|
||||
@@ -60,7 +60,7 @@ enum arm9tdmi_vector_bit
|
||||
};
|
||||
|
||||
static const struct arm9tdmi_vector {
|
||||
char *name;
|
||||
const char *name;
|
||||
uint32_t value;
|
||||
} arm9tdmi_vectors[] = {
|
||||
{"reset", ARM9TDMI_RESET_VECTOR},
|
||||
|
||||
@@ -2354,7 +2354,7 @@ static int evaluate_add_sp_pc_thumb(uint16_t opcode,
|
||||
uint8_t Rd = (opcode >> 8) & 0x7;
|
||||
uint8_t Rn;
|
||||
uint32_t SP = opcode & (1 << 11);
|
||||
char *reg_name;
|
||||
const char *reg_name;
|
||||
|
||||
instruction->type = ARM_ADD;
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ struct reg armv7m_gdb_dummy_cpsr_reg =
|
||||
*/
|
||||
static const struct {
|
||||
unsigned id;
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned bits;
|
||||
} armv7m_regs[] = {
|
||||
{ ARMV7M_R0, "r0", 32 },
|
||||
|
||||
@@ -173,7 +173,7 @@ static int dsp563xx_jtag_sendinstr(struct jtag_tap *tap, uint8_t * ir_in, uint8_
|
||||
static const struct
|
||||
{
|
||||
unsigned id;
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned bits;
|
||||
uint32_t r_cmd;
|
||||
uint32_t w_cmd;
|
||||
|
||||
@@ -53,7 +53,7 @@ struct dsp563xx_common
|
||||
struct dsp563xx_core_reg
|
||||
{
|
||||
uint32_t num;
|
||||
char *name;
|
||||
const char *name;
|
||||
uint32_t size;
|
||||
uint32_t r_cmd;
|
||||
uint32_t w_cmd;
|
||||
|
||||
@@ -139,7 +139,7 @@ struct etm_context;
|
||||
|
||||
struct etm_capture_driver
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
const struct command_registration *commands;
|
||||
int (*init)(struct etm_context *etm_ctx);
|
||||
trace_status_t (*status)(struct etm_context *etm_ctx);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -42,7 +42,7 @@ struct target_type
|
||||
* Name of this type of target. Do @b not access this
|
||||
* field directly, use target_type_name() instead.
|
||||
*/
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
/* poll current target status */
|
||||
int (*poll)(struct target *target);
|
||||
|
||||
Reference in New Issue
Block a user