From 16b62051fb740dafbf761ef556d0424e37de4b22 Mon Sep 17 00:00:00 2001 From: Baohong Liu Date: Tue, 15 Nov 2016 12:08:39 -0800 Subject: [PATCH] tests: spi_test: fix variable type mismatching issue The variable type mismatching was caught by LLVM. Jira: ZEP-1179 Change-Id: I37934ef2ee47c521a78086564876843794688d55 Signed-off-by: Baohong Liu --- tests/drivers/spi_test/src/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/drivers/spi_test/src/spi.c b/tests/drivers/spi_test/src/spi.c index 2cccf31b291..fd2fce142c5 100644 --- a/tests/drivers/spi_test/src/spi.c +++ b/tests/drivers/spi_test/src/spi.c @@ -85,7 +85,7 @@ void main(void) printk("SPI sent: %s\n", wbuf); print_buf_hex(rbuf, 6); - strcpy(wbuf, "So what then?"); + strcpy((char *)wbuf, "So what then?"); spi_transceive(spi, wbuf, 14, rbuf, 16); printk("SPI transceived: %s\n", rbuf);