Khorben/warnings (#519)

* Fix warnings and missing #include for <ctype.h>
* Avoid a warning in client/util.c
This commit is contained in:
Pierre Pronchery 2017-12-28 17:56:18 +01:00 committed by pwpiwi
commit 3ded0f97d3
8 changed files with 14 additions and 12 deletions

View file

@ -8,6 +8,7 @@
// EMV commands
//-----------------------------------------------------------------------------
#include <ctype.h>
#include "cmdemv.h"
#include "test/cryptotest.h"
@ -69,7 +70,7 @@ int CmdHFEMVSelect(const char *cmd) {
return 1;
}
if (isxdigit(c)) {
if (isxdigit((unsigned char)c)) {
switch(param_gethex_to_eol(cmd, cmdp, data, sizeof(data), &datalen)) {
case 1:
PrintAndLog("Invalid HEX value.");