From 538b253dfb6ad26e34ebe832abd637f6a6e9dc94 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Sat, 2 Mar 2024 22:25:55 -0500 Subject: [PATCH] Replace RGBFIX non-null pointers with references --- src/fix/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fix/main.cpp b/src/fix/main.cpp index fdd5a269..938fac78 100644 --- a/src/fix/main.cpp +++ b/src/fix/main.cpp @@ -188,10 +188,10 @@ static uint8_t tpp1Rev[2]; /* * @return False on failure */ -static bool readMBCSlice(char const **name, char const *expected) +static bool readMBCSlice(char const *&name, char const *expected) { while (*expected) { - char c = *(*name)++; + char c = *name++; if (c == '\0') // Name too short return false; @@ -243,7 +243,7 @@ static enum MbcType parseMBC(char const *name) #define tryReadSlice(expected) \ do { \ - if (!readMBCSlice(&ptr, expected)) \ + if (!readMBCSlice(ptr, expected)) \ return MBC_BAD; \ } while (0)