Fix build on Microsoft Windows.
Windows users: I hate you in secret.
This commit is contained in:
parent
d7c16d6d1a
commit
fd0efd4a62
9 changed files with 52 additions and 30 deletions
|
|
@ -94,9 +94,11 @@ write_card (void)
|
|||
uint32_t uiWritenPages = 0;
|
||||
|
||||
char buffer[BUFSIZ];
|
||||
bool write_otp;
|
||||
|
||||
printf ("Write OTP bytes ? [yN] ");
|
||||
fgets (buffer, BUFSIZ, stdin);
|
||||
bool write_otp = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
write_otp = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
|
||||
/* We need to skip 3 first pages. */
|
||||
printf ("Writing %d pages |", uiBlocks + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue