From ca2d4b08dd5d20249e1ab859cac513b5b75075ae Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Sun, 7 May 2023 11:55:30 +0200 Subject: [PATCH] cdba-server: correct cast to fix -Wcast-qual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: cdba-server.c: In function ‘fastboot_info’: cdba-server.c:98:33: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 98 | fprintf(stderr, "%s\n", (char *)buf); | ^ Signed-off-by: Krzysztof Kozlowski --- cdba-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdba-server.c b/cdba-server.c index 4453875..d942651 100644 --- a/cdba-server.c +++ b/cdba-server.c @@ -95,7 +95,7 @@ static void fastboot_opened(struct fastboot *fb, void *data) static void fastboot_info(struct fastboot *fb, const void *buf, size_t len) { - fprintf(stderr, "%s\n", (char *)buf); + fprintf(stderr, "%s\n", (const char *)buf); } static void fastboot_disconnect(void *data)