counter: rename shadow variables

Rename shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-09 14:29:22 -07:00 committed by Carles Cufí
parent a41475507a
commit 729fd4c574

View file

@ -289,7 +289,7 @@ static const uint8_t *decode_time(struct tm *tp,
uint8_t reg;
if (with_sec) {
uint8_t reg = *rp++;
reg = *rp++;
tp->tm_sec = bcd2bin(reg & 0x7F);
}