From 522ccdbb9571af5c37813219d3a649fc0fc490ea Mon Sep 17 00:00:00 2001 From: mmb70 Date: Tue, 21 Jul 2020 14:24:21 -0700 Subject: func_0x800968B0 PR review --- src/boot_O2_g3/boot_0x800968B0.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/boot_O2_g3') diff --git a/src/boot_O2_g3/boot_0x800968B0.c b/src/boot_O2_g3/boot_0x800968B0.c index ca313bdea..fb41b3911 100644 --- a/src/boot_O2_g3/boot_0x800968B0.c +++ b/src/boot_O2_g3/boot_0x800968B0.c @@ -1,12 +1,15 @@ #include #include -u32 func_800968B0(const u8* a0, const u8* a1) { - u8 v0; - u8 v1; +/* + * Compare strings (strcmp). + */ +s32 func_800968B0(const char* str1, const char* str2) { + char v0; + char v1; do { - v0 = *a0++; - v1 = *a1++; + v0 = *str1++; + v1 = *str2++; if (v0 != v1) { return v0 - v1; } -- cgit v1.2.3