summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/berry.c b/src/berry.c
index 680f21e3d..a2e5900a8 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -921,6 +921,8 @@ const struct BerryTree gBlankBerryTree = {};
berries[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX]; \
})
+static u32 GetEnigmaBerryChecksum(struct EnigmaBerry *);
+
void InitEnigmaBerry(void)
{
s32 i;
@@ -967,7 +969,7 @@ void SetEnigmaBerry(u8 * berry)
enigmaBerry->checksum = GetEnigmaBerryChecksum(enigmaBerry);
}
-u32 GetEnigmaBerryChecksum(struct EnigmaBerry * enigmaBerry)
+static u32 GetEnigmaBerryChecksum(struct EnigmaBerry * enigmaBerry)
{
const u8 * src = (const u8 *)enigmaBerry;
u32 result = 0;