summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/target.c4
-rw-r--r--src/target/target.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c
index a9bb8e85..820e7471 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1213,7 +1213,7 @@ int target_alloc_working_area_try(struct target *target, uint32_t size, struct w
}
/* mark as used, and return the new (reused) area */
- new_wa->free = 0;
+ new_wa->free = false;
*area = new_wa;
/* user pointer */
@@ -1247,7 +1247,7 @@ static int target_free_working_area_restore(struct target *target, struct workin
return retval;
}
- area->free = 1;
+ area->free = true;
/* mark user pointer invalid */
*area->user = NULL;
diff --git a/src/target/target.h b/src/target/target.h
index ef05e751..4d03018e 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -94,7 +94,7 @@ struct working_area
{
uint32_t address;
uint32_t size;
- int free;
+ bool free;
uint8_t *backup;
struct working_area **user;
struct working_area *next;