tools: kwboot: Make the quit sequence buffer const
This buffer is never written to. Make it const. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
committed by
Stefan Roese
parent
f30cb0d3b9
commit
46237e63d5
@@ -460,7 +460,7 @@ can:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
kwboot_term_pipe(int in, int out, char *quit, int *s)
|
kwboot_term_pipe(int in, int out, const char *quit, int *s)
|
||||||
{
|
{
|
||||||
ssize_t nin, nout;
|
ssize_t nin, nout;
|
||||||
char _buf[128], *buf = _buf;
|
char _buf[128], *buf = _buf;
|
||||||
@@ -504,7 +504,7 @@ static int
|
|||||||
kwboot_terminal(int tty)
|
kwboot_terminal(int tty)
|
||||||
{
|
{
|
||||||
int rc, in, s;
|
int rc, in, s;
|
||||||
char *quit = "\34c";
|
const char *quit = "\34c";
|
||||||
struct termios otio, tio;
|
struct termios otio, tio;
|
||||||
|
|
||||||
rc = -1;
|
rc = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user