Skip to content

Commit 7f9a0a1

Browse files
committed
modemu2k.c:reduce scope of 2 msg strings
1 parent 1533c97 commit 7f9a0a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modemu2k.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,15 +441,15 @@ putTtyCmdstat (Cmdstat s)
441441
"",
442442
};
443443

444-
const char msg_escape_seq[] = gettext_noop("To escape to command mode, use '+++'.");
445-
const char msg_return_online[] = gettext_noop("Use ATO to return to online mode.");
446-
447444
putTty1 (CHAR_CR);
448445
putTty1 (CHAR_LF);
449446
putTtyN (cmdstatStr[s], strlen (cmdstatStr[s]));
450447

451448
if (s == CMDST_CONNECT)
452449
{
450+
static const char msg_escape_seq[] = gettext_noop("To escape to command mode, use '+++'.");
451+
static const char msg_return_online[] = gettext_noop("Use ATO to return to online mode.");
452+
453453
putTty1 (CHAR_CR);
454454
putTty1 (CHAR_LF);
455455
putTtyN (msg_escape_seq, sizeof msg_escape_seq);

0 commit comments

Comments
 (0)