]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/mifarehost.c
OSX: delete another reference to readline
[proxmark3-svn] / client / mifarehost.c
index cbd79cf7536d5475288f1d02518f09075889de49..6b5e3ba2312df8e4a9742ff45a09a08b21e5411a 100644 (file)
@@ -8,6 +8,8 @@
 // mifare commands\r
 //-----------------------------------------------------------------------------\r
 \r
+#include "mifarehost.h"\r
+\r
 #include <stdio.h>\r
 #include <stdlib.h> \r
 #include <string.h>\r
@@ -20,7 +22,6 @@
 #include "ui.h"\r
 #include "util.h"\r
 #include "iso14443crc.h"\r
-#include "mifarehost.h"\r
 \r
 // mifare tracer flags used in mfTraceDecode()\r
 #define TRACE_IDLE                                             0x00\r
@@ -223,7 +224,7 @@ int mfDarkside(uint64_t *key)
 \r
 int mfCheckKeys (uint8_t blockNo, uint8_t keyType, bool clear_trace, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key){\r
 \r
-       *key = 0;\r
+       *key = -1;\r
 \r
        UsbCommand c = {CMD_MIFARE_CHKKEYS, {((blockNo & 0xff) | ((keyType&0xff)<<8)), clear_trace, keycnt}};\r
        memcpy(c.d.asBytes, keyBlock, 6 * keycnt);\r
Impressum, Datenschutz