Make data argument const
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#include "link.h"
|
#include "link.h"
|
||||||
#include "constants/game_stat.h"
|
#include "constants/game_stat.h"
|
||||||
|
|
||||||
static u16 CalculateChecksum(void *data, u16 size);
|
static u16 CalculateChecksum(const void *data, u16 size);
|
||||||
static bool8 DoReadFlashWholeSection(u8 sector, struct SaveSection *section);
|
static bool8 DoReadFlashWholeSection(u8 sector, struct SaveSection *section);
|
||||||
static u8 GetSaveValidStatus(const struct SaveSectionLocation *location);
|
static u8 GetSaveValidStatus(const struct SaveSectionLocation *location);
|
||||||
static u8 sub_8152E10(u16 a1, const struct SaveSectionLocation *location);
|
static u8 sub_8152E10(u16 a1, const struct SaveSectionLocation *location);
|
||||||
@@ -621,7 +621,7 @@ static bool8 DoReadFlashWholeSection(u8 sector, struct SaveSection *section)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static u16 CalculateChecksum(void *data, u16 size)
|
static u16 CalculateChecksum(const void *data, u16 size)
|
||||||
{
|
{
|
||||||
u16 i;
|
u16 i;
|
||||||
u32 checksum = 0;
|
u32 checksum = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user