Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
scardcontrol.c:686:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘DWORD’ {aka ‘long unsigned int’} [-Wformat=]
  686 |  printf(" card response [%d bytes]:", length);
      |                          ~^           ~~~~~~
      |                           |           |
      |                           int         DWORD {aka long unsigned int}
      |                          %ld
  • Loading branch information
LudovicRousseau committed Apr 19, 2020
1 parent ce899b9 commit b537916
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 @@ -683,7 +683,7 @@ int main(int argc, char *argv[])
error = TRUE;

printf(error ? RED : GREEN);
printf(" card response [%d bytes]:", length);
printf(" card response [%ld 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 b537916

Please sign in to comment.