Fixing warning:

warning: ignoring return va 'scanf', declared with attribute warn_unused_result [-Wunused-result]
This commit is contained in:
Alexis Green 2016-08-01 13:03:46 -07:00
commit 6e321dd8f3

View file

@ -527,8 +527,7 @@ int CmdLegicRfRawWrite(const char *Cmd) {
PrintAndLog("# changing the DCF is irreversible #"); PrintAndLog("# changing the DCF is irreversible #");
PrintAndLog("#####################################"); PrintAndLog("#####################################");
PrintAndLog("do youe really want to continue? y(es) n(o)"); PrintAndLog("do youe really want to continue? y(es) n(o)");
scanf(" %c", &answer); if (scanf(" %c", &answer) > 0 && (answer == 'y' || answer == 'Y')) {
if (answer == 'y' || answer == 'Y') {
SendCommand(&c); SendCommand(&c);
return 0; return 0;
} }