mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
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:
committed by
Bjorn Andersson
parent
044be470d2
commit
ca2d4b08dd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user