From e8fe0cf500326d52d336b636bc949bb02787046a Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Fri, 28 Aug 2026 17:55:24 +0200 Subject: [PATCH] Rename hole parameter to holes --- src/dryrun.c | 4 ++-- src/dryrun_part.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dryrun.c b/src/dryrun.c index 2b008067..c7e5d414 100644 --- a/src/dryrun.c +++ b/src/dryrun.c @@ -57,7 +57,7 @@ typedef struct { int init; // Initialise memories with something interesting int random; // Random initialisation of memories int seed; // Seed for random number generator - int hole; // Whether eeprom/flash should have holes + int holes; // Whether eeprom/flash should have holes struct { int vectornum; // Vector bootloader vector number for jump to application op code int urversion; // Octal byte 076 means v7.6 (minor version number is lowest 3 bit) @@ -392,7 +392,7 @@ static void dryrun_enable(PROGRAMMER *pgm, const AVRPART *p) { if(dry.dp) // Already configured return; - dry.dp = dryrun_part(p->id, &dry.bootsize, dry.init, dry.random, dry.hole, dry.seed); + dry.dp = dryrun_part(p->id, &dry.bootsize, dry.init, dry.random, dry.holes, dry.seed); // Initialise urboot descriptor so that all flash is programmable and there is no bootloader if((m = avr_locate_flash(p))) diff --git a/src/dryrun_part.c b/src/dryrun_part.c index 877c96e3..36ce77fc 100644 --- a/src/dryrun_part.c +++ b/src/dryrun_part.c @@ -18,7 +18,7 @@ /* * AVRPART *dryrun_part(const char *id, int *bootsizep, - * int init, int random, int hole, int seed) + * int init, int random, int holes, int seed) * * Returns a duplicate of the part structure that is known from the * configuration file under the given id (eg, m328p). Lock and fuse @@ -86,7 +86,7 @@ typedef struct { int lock; // Cache of lock (unused) int init; // Initialise memories with something interesting int random; // Random initialisation of memories - int hole; // Whether eeprom/flash should have holes + int holes; // Whether eeprom/flash should have holes int seed; // Seed for random number generator // Flash configuration irrespective of -c programming is bootloading or not int appstart, appsize; // Start and size of application section @@ -485,7 +485,7 @@ static void putother(const Testpart_data *mep, const AVRPART *p, const AVRMEM *m m->buf[m->size - len - 1] = ' '; } -AVRPART *dryrun_part(const char *partid, int *bootsizep, int init, int random, int hole, int seed) { +AVRPART *dryrun_part(const char *partid, int *bootsizep, int init, int random, int holes, int seed) { pmsg_debug("%s()\n", __func__); const AVRPART *p = locate_part(part_list, partid); @@ -499,7 +499,7 @@ AVRPART *dryrun_part(const char *partid, int *bootsizep, int init, int random, i me.init = init; // Initialise memories with something interesting me.random = random; // Random initialisation of memories - me.hole = hole; // Whether eeprom/flash should have holes + me.holes = holes; // Whether eeprom/flash should have holes me.seed = seed; // Seed for random number generator memset(me.fuses, 0xff, sizeof me.fuses); srandom(me.seed? me.seed: time(NULL));