X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a8.c;h=82d0b281907ec548a497217a8e4cdb7a1c331fc5;hb=d727f978897105ceacfed06da0152b4b4dfffc3d;hp=a44bb92ed7a10cc926f9dca1ab08db2e1c234970;hpb=42fb6b88764fb39fd07726d7bb447a79c3951aa4;p=openocd.git diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index a44bb92ed7..82d0b28190 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -1409,7 +1409,7 @@ static int cortex_a8_examine(struct target_s *target) /* Setup Watchpoint Register Pairs */ cortex_a8->wrp_num = ((didr >> 28) & 0x0F) + 1; cortex_a8->wrp_num_available = cortex_a8->wrp_num; - cortex_a8->wrp_list = calloc(cortex_a8->wrp_num, sizeof(cortex_a8_wrp_t)); + cortex_a8->wrp_list = calloc(cortex_a8->wrp_num, sizeof(struct cortex_a8_wrp)); for (i = 0; i < cortex_a8->wrp_num; i++) { cortex_a8->wrp_list[i].used = 0;