From: iceman1001 Date: Sun, 14 Jun 2015 21:02:52 +0000 (+0200) Subject: FIX: minor variable fixes when compiling on linux. X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0ad1a1d492ab62eb42c1eb7b4ce6fff05d90e0a3?hp=32719adfa1d9bf48ec80c212665fd92c5ec5aa89 FIX: minor variable fixes when compiling on linux. cmddata.c: In function ‘Cmdmandecoderaw’: cmddata.c:420:2: warning: format ‘%i’ expects argument of type ‘int *’, but argument 4 has type ‘size_t *’ [-Wformat=] sscanf(Cmd, "%i %i", &invert, &maxErr); ^ cmdlfem4x.c: In function ‘CmdEM410xRead’: cmdlfem4x.c:58:2: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=] sprintf(id, "%010llx",lo); ^ --- diff --git a/client/cmddata.c b/client/cmddata.c index d7dd5795..ebab1439 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -392,7 +392,7 @@ int Cmdmandecoderaw(const char *Cmd) int errCnt=0; size_t size=0; int invert=0; - size_t maxErr = 20; + int maxErr = 20; char cmdp = param_getchar(Cmd, 0); if (strlen(Cmd) > 5 || cmdp == 'h' || cmdp == 'H') { PrintAndLog("Usage: data manrawdecode [invert] [maxErr]"); diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index c167f456..c68d35f8 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -20,6 +20,9 @@ #include "cmdlf.h" #include "cmdlfem4x.h" #include "lfdemod.h" + +#define llx PRIx64 + char *global_em410xId; static int CmdHelp(const char *Cmd);