Fix the minor style issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-08 16:31:21 +08:00
committed by Petro Karashchenko
parent 4941182cc6
commit 893387b2c5
112 changed files with 605 additions and 576 deletions

View File

@@ -58,12 +58,12 @@
static void nsh_telnetecho(FAR struct console_stdio_s *pstate,
uint8_t is_use)
{
uint8_t optbuf[4];
char optbuf[4];
optbuf[0] = TELNET_IAC;
optbuf[1] = (is_use == TELNET_USE_ECHO) ? TELNET_WILL : TELNET_DO;
optbuf[2] = 1;
optbuf[3] = 0;
fputs((char *)optbuf, pstate->cn_outstream);
fputs(optbuf, pstate->cn_outstream);
fflush(pstate->cn_outstream);
}