buspirate: fix invalidScanfArgType_int warning

"%x" specifies an unsigned int, hence change the type of spi_write, spi_read
accordingly.
This commit is contained in:
Yegor Yefremov 2022-01-07 19:16:37 +01:00
parent 11f7692cc0
commit f2d6342d21
1 changed files with 2 additions and 1 deletions

View File

@ -857,7 +857,8 @@ static int buspirate_cmd_ascii(struct programmer_t *pgm,
{ {
char buf[25]; char buf[25];
char *rcvd; char *rcvd;
int spi_write, spi_read, i = 0; int i = 0;
unsigned int spi_write, spi_read;
snprintf(buf, sizeof(buf), "0x%02x 0x%02x 0x%02x 0x%02x\n", snprintf(buf, sizeof(buf), "0x%02x 0x%02x 0x%02x 0x%02x\n",
cmd[0], cmd[1], cmd[2], cmd[3]); cmd[0], cmd[1], cmd[2], cmd[3]);