X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e73c9f1bd4f09495fc4a92607cc59943bcc56497..HEAD:/client/util.c diff --git a/client/util.c b/client/util.c index 3b299c9a..20580448 100644 --- a/client/util.c +++ b/client/util.c @@ -11,6 +11,7 @@ #include "util.h" #include +#include #include #include #include @@ -49,7 +50,7 @@ int ukbhit(void) error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty); // reset attributes } - return ( error == 0 ? cnt : -1 ); + return cnt; } char getch(void) @@ -572,7 +573,7 @@ int param_gethex_to_eol(const char *line, int paramnum, uint8_t * data, int maxd } if (strlen(buf) >= 2) { - sscanf(buf, "%x", &temp); + sscanf(buf, "%" SCNx32, &temp); data[*datalen] = (uint8_t)(temp & 0xff); *buf = 0; (*datalen)++;