Unshadow variable

This commit is contained in:
Martin Lund 2024-04-29 01:49:44 +02:00
parent 6895c05321
commit eef0a15194

View file

@ -2322,20 +2322,20 @@ int tty_connect(void)
// Support hexN mode // Support hexN mode
if (option.hex_n_value > 0) if (option.hex_n_value > 0)
{ {
static bool first = true; static bool first_ = true;
if ((count % option.hex_n_value) == 0) if ((count % option.hex_n_value) == 0)
{ {
if (option.timestamp != TIMESTAMP_NONE) if (option.timestamp != TIMESTAMP_NONE)
{ {
now = timestamp_current_time(); now = timestamp_current_time();
if (first) if (first_)
{ {
ansi_printf_raw("[%s] ", now); ansi_printf_raw("[%s] ", now);
if (option.log) if (option.log)
{ {
log_printf("[%s] ", now); log_printf("[%s] ", now);
} }
first = false; first_ = false;
} }
else else
{ {
@ -2348,7 +2348,7 @@ int tty_connect(void)
} }
else else
{ {
if (first) if (first_)
{ {
// Do nothing // Do nothing
} }
@ -2361,7 +2361,7 @@ int tty_connect(void)
{ {
log_putc('\n'); log_putc('\n');
} }
first = false; first_ = false;
} }
} }
} }