Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
scardcontrol.c:851:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘DWORD’ {aka ‘long unsigned int’} [-Wformat=]
  printf(" card response [%d bytes]:", length);
                          ~^           ~~~~~~
                          %ld
  • Loading branch information
LudovicRousseau committed Apr 22, 2020
1 parent 8f33a2f commit a940d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scardcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ int main(int argc, char *argv[])
error = TRUE;

printf(error ? RED : GREEN);
printf(" card response [%d bytes]:", length);
printf(" card response [%"LF"d bytes]:", length);
for (i=0; i<length; i++)
printf(" %02X", bRecvBuffer[i]);
printf(": %s", pinpad_return_codes(length, bRecvBuffer));
Expand Down

0 comments on commit a940d89

Please sign in to comment.