cdba-server: correct cast to fix -Wcast-qual

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 <krzysztof.kozlowski@linaro.org>
This commit is contained in:
Krzysztof Kozlowski
2023-05-07 11:55:30 +02:00
committed by Bjorn Andersson
parent 044be470d2
commit ca2d4b08dd

View File

@@ -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)