]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed compiler warnings
authorroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 3 Oct 2013 14:36:42 +0000 (14:36 +0000)
committerroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 3 Oct 2013 14:36:42 +0000 (14:36 +0000)
client/cmdhf14a.c
client/cmdlf.c
client/nonce2key/nonce2key.c

index 9309a1a9bfe1575aa2d2e1d39f02c812bfde964a..f7e0ffa998d0a76961d72bc833de3399f88f7cde 100644 (file)
@@ -596,9 +596,8 @@ static void waitCmd(uint8_t iSelect)
             return;
         hexout = (char *)malloc(iLen * 3 + 1);
         if (hexout != NULL) {
-            uint8_t first, second;
             for (int i = 0; i < iLen; i++) { // data in hex
-                sprintf(&hexout[i * 3], "%02hX ", recv[i]);
+                sprintf(&hexout[i * 3], "%02X ", recv[i]);
             }
             PrintAndLog("%s", hexout);
             free(hexout);
index 6511ba1349f1f7d5b1260e665f7f581f40635ca5..c278fb3dc3146d49ea146ffbbd7b6d3bae0b85a2 100644 (file)
@@ -362,7 +362,7 @@ int CmdLFRead(const char *Cmd)
     c.arg[0] = 1;
   } else if (*Cmd == '\0') {
     c.arg[0] = 0;
-  } else if (sscanf(Cmd, "%i", &c.arg[0]) != 1) {
+  } else if (sscanf(Cmd, "%"lli, &c.arg[0]) != 1) {
     PrintAndLog("use 'read' or 'read h', or 'read <divisor>'");
     return 0;
   }
index 7c63722d9e5566e3a1c9b20ade255fa3d5bf4277..47206380ae2bbf1cb07bd16c51bc5d95fda6623e 100644 (file)
@@ -105,7 +105,7 @@ int nonce2key(uint32_t uid, uint32_t nt, uint32_t nr, uint64_t par_info, uint64_
                        p2 = state_s;
                        while ( *p1 != -1 && *p2 != -1 ) {
                                if (compar_state(p1, p2) == 0) {
-                                       printf("p1:%d p2:%d p3:%d key:%012llx\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
+                                       printf("p1:%ld p2:%ld p3:%ld key:%012"llx"\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
                                        *p3++ = *p1++;
                                        p2++;
                                }
Impressum, Datenschutz