aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-09-24 23:06:40 +0200
committerStefan Roese <sr@denx.de>2021-10-01 11:07:13 +0200
commit46237e63d509a2f06e126b02465f8dd05e045e80 (patch)
tree54ac1ff89c9bcc76e55165807bff56532c06c5e4 /tools
parentf30cb0d3b9fd2d7c51339404ddaeae53ba9b90f9 (diff)
downloadu-boot-46237e63d509a2f06e126b02465f8dd05e045e80.zip
u-boot-46237e63d509a2f06e126b02465f8dd05e045e80.tar.gz
u-boot-46237e63d509a2f06e126b02465f8dd05e045e80.tar.bz2
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index e6e9984..f18f6d2 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -460,7 +460,7 @@ can:
}
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;
char _buf[128], *buf = _buf;
@@ -504,7 +504,7 @@ static int
kwboot_terminal(int tty)
{
int rc, in, s;
- char *quit = "\34c";
+ const char *quit = "\34c";
struct termios otio, tio;
rc = -1;