Skip to content

Commit

Permalink
macOS: fix compiler warning
Browse files Browse the repository at this point in the history
scardcontrol.c:688:40: warning: format specifies type 'long' but the argument
      has type 'DWORD' (aka 'unsigned int') [-Wformat]
        printf(" card response [%ld bytes]:", length);
                                ~~~           ^~~~~~
                                %u
  • Loading branch information
LudovicRousseau committed Apr 19, 2020
1 parent 47746f0 commit ecc9c0d
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 @@ -685,7 +685,7 @@ int main(int argc, char *argv[])
error = TRUE;

printf(error ? RED : GREEN);
printf(" card response [%ld 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 ecc9c0d

Please sign in to comment.