On 24.09.21 23:06, Marek Behún wrote:
From: Marek Behún <marek.be...@nic.cz>

This buffer is never written to. Make it const.

Signed-off-by: Marek Behún <marek.be...@nic.cz>

Reviewed-by: Stefan Roese <s...@denx.de>

Thanks,
Stefan

---
  tools/kwboot.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/kwboot.c b/tools/kwboot.c
index e6e99849a7..f18f6d2134 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;



Viele Grüße,
Stefan

--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: s...@denx.de

Reply via email to