aboutsummaryrefslogtreecommitdiff
path: root/src/target/target_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/target_request.c')
-rw-r--r--src/target/target_request.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target_request.c b/src/target/target_request.c
index 72c8421..8d51dc3 100644
--- a/src/target/target_request.c
+++ b/src/target/target_request.c
@@ -107,7 +107,7 @@ static int target_hexmsg(struct target *target, int size, uint32_t length)
*/
int target_request(struct target *target, uint32_t request)
{
- target_req_cmd_t target_req_cmd = request & 0xff;
+ enum target_req_cmd target_req_cmd = request & 0xff;
assert(target->type->target_request_data);
@@ -164,7 +164,7 @@ static int add_debug_msg_receiver(struct command_context *cmd_ctx, struct target
(*p)->next = NULL;
/* enable callback */
- target->dbg_msg_enabled = 1;
+ target->dbg_msg_enabled = true;
return ERROR_OK;
}
@@ -225,7 +225,7 @@ int delete_debug_msg_receiver(struct command_context *cmd_ctx, struct target *ta
free(c);
if (!*p) {
/* disable callback */
- target->dbg_msg_enabled = 0;
+ target->dbg_msg_enabled = false;
}
return ERROR_OK;
} else