From cdabe64957d2789a3c4fd4f8992e1313dea28f8a Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 18 Nov 2023 16:35:54 -0500 Subject: [PATCH] Use SDK strcmp instead of re-implementing --- base/code/set_initial_flags.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/base/code/set_initial_flags.c b/base/code/set_initial_flags.c index 7694b293..2212c299 100644 --- a/base/code/set_initial_flags.c +++ b/base/code/set_initial_flags.c @@ -7,21 +7,6 @@ static void set_flag(uint32_t addr, uint8_t bit) { *((uint8_t *)addr) |= bit; } -static int strcmp(char *X, char *Y) { - // TODO: replace with PH's native strcmp - while (*X) { - if (*X != *Y) { - break; - } - - // move to the next pair of characters - X++; - Y++; - } - - return *(const unsigned char *)X - *(const unsigned char *)Y; -} - void set_initial_flags(uint32_t base_flag_address) { Flag *f = (Flag *)(0x23DF24C);