Silent some compilation warnings (Fixes Issue 145)

This commit is contained in:
Romuald Conty 2011-02-10 10:38:21 +00:00
parent f272e156e8
commit 243100b676
4 changed files with 12 additions and 6 deletions

View file

@ -113,10 +113,14 @@ write_card (void)
bool write_lock;
printf ("Write OTP bytes ? [yN] ");
fgets (buffer, BUFSIZ, stdin);
if (!fgets (buffer, BUFSIZ, stdin)) {
ERR ("Unable to read standard input.");
}
write_otp = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
printf ("Write Lock bytes ? [yN] ");
fgets (buffer, BUFSIZ, stdin);
if (!fgets (buffer, BUFSIZ, stdin)) {
ERR ("Unable to read standard input.");
}
write_lock = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
printf ("Writing %d pages |", uiBlocks + 1);