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 <baohong.liu@intel.com>
This commit is contained in:
Baohong Liu 2016-11-15 12:08:39 -08:00 committed by Anas Nashif
commit 16b62051fb

View file

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