]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwboot: Make the quit sequence buffer const
authorMarek Behún <marek.behun@nic.cz>
Fri, 24 Sep 2021 21:06:40 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
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>
tools/kwboot.c

index e6e99849a798f82778a9896bbda0e0869985042c..f18f6d21341464c89972c2c4b8c7f0afbcc94481 100644 (file)
@@ -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;