From: iceman1001 Date: Mon, 11 Apr 2016 13:26:55 +0000 (+0200) Subject: CHG: syntax suger X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/01c78dabc3c80c89ad6ff623bb66f5b3c6067e67?ds=sidebyside;hp=41863885d0b03223205c2dfc8d87743a100abf28 CHG: syntax suger --- diff --git a/client/mifarehost.c b/client/mifarehost.c index 4e9ac539..4b3ee486 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -218,14 +218,13 @@ out: } int mfCheckKeys (uint8_t blockNo, uint8_t keyType, bool clear_trace, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key){ - *key = 0; UsbCommand c = {CMD_MIFARE_CHKKEYS, { (blockNo | (keyType<<8)), clear_trace, keycnt}}; memcpy(c.d.asBytes, keyBlock, 6 * keycnt); clearCommandBuffer(); SendCommand(&c); UsbCommand resp; - if (!WaitForResponseTimeout(CMD_ACK,&resp, 2500)) return 1; + if (!WaitForResponseTimeout(CMD_ACK, &resp, 2500)) return 1; if ((resp.arg[0] & 0xff) != 0x01) return 2; *key = bytes_to_num(resp.d.asBytes, 6); return 0;