Skip to content

Commit b3d988b

Browse files
committed
fixup! sys/riotboot: riotboot head v2
1 parent 6461a0b commit b3d988b

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

core/lib/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "thread.h"
3232
#include "stdio_base.h"
3333
#if IS_USED(MODULE_RIOTBOOT)
34-
#include "riotboot/wdt.h"
34+
# include "riotboot/wdt.h"
3535
#endif
3636
#if IS_USED(MODULE_VFS)
3737
#include "vfs.h"

sys/riotboot/hdr.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,24 @@ static uint32_t *_magic_number(riotboot_hdr_t *riotboot_hdr)
5050
static uint32_t *_version(riotboot_hdr_t *riotboot_hdr)
5151
{
5252
switch (riotboot_hdr->v1.magic_number) {
53-
case RIOTBOOT_MAGIC_V1:
54-
return &riotboot_hdr->v1.version;
55-
case RIOTBOOT_MAGIC_V2:
56-
return &riotboot_hdr->v2.version;
57-
default:
58-
return NULL;
53+
case RIOTBOOT_MAGIC_V1:
54+
return &riotboot_hdr->v1.version;
55+
case RIOTBOOT_MAGIC_V2:
56+
return &riotboot_hdr->v2.version;
57+
default:
58+
return NULL;
5959
}
6060
}
6161

6262
static uint32_t *_start_addr(riotboot_hdr_t *riotboot_hdr)
6363
{
6464
switch (riotboot_hdr->v1.magic_number) {
65-
case RIOTBOOT_MAGIC_V1:
66-
return &riotboot_hdr->v1.start_addr;
67-
case RIOTBOOT_MAGIC_V2:
68-
return &riotboot_hdr->v2.start_addr;
69-
default:
70-
return NULL;
65+
case RIOTBOOT_MAGIC_V1:
66+
return &riotboot_hdr->v1.start_addr;
67+
case RIOTBOOT_MAGIC_V2:
68+
return &riotboot_hdr->v2.start_addr;
69+
default:
70+
return NULL;
7171
}
7272
}
7373

@@ -82,12 +82,12 @@ static uint32_t *_flags(riotboot_hdr_t *riotboot_hdr)
8282
static uint32_t *_checksum(riotboot_hdr_t *riotboot_hdr)
8383
{
8484
switch (riotboot_hdr->v1.magic_number) {
85-
case RIOTBOOT_MAGIC_V1:
86-
return &riotboot_hdr->v1.chksum;
87-
case RIOTBOOT_MAGIC_V2:
88-
return &riotboot_hdr->v2.chksum;
89-
default:
90-
return NULL;
85+
case RIOTBOOT_MAGIC_V1:
86+
return &riotboot_hdr->v1.chksum;
87+
case RIOTBOOT_MAGIC_V2:
88+
return &riotboot_hdr->v2.chksum;
89+
default:
90+
return NULL;
9191
}
9292
}
9393

0 commit comments

Comments
 (0)