Remove extra semi-columns at end of macro definitions.
This commit is contained in:
parent
f7c4d99868
commit
878af0e22a
2 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ static ssize_t read_data (MifareTag tag, uint8_t command, uint8_t file_no, off_
|
||||||
do { \
|
do { \
|
||||||
if (MIFARE_DESFIRE (tag)->authenticated_key_no == NOT_YET_AUTHENTICATED) \
|
if (MIFARE_DESFIRE (tag)->authenticated_key_no == NOT_YET_AUTHENTICATED) \
|
||||||
return errno = EINVAL, -1;\
|
return errno = EINVAL, -1;\
|
||||||
} while (0);
|
} while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX: cs < 0 is a CommunicationSettings detection error. Other values are
|
* XXX: cs < 0 is a CommunicationSettings detection error. Other values are
|
||||||
|
@ -109,7 +109,7 @@ static ssize_t read_data (MifareTag tag, uint8_t command, uint8_t file_no, off_
|
||||||
do { \
|
do { \
|
||||||
if (!argument) \
|
if (!argument) \
|
||||||
return errno = EINVAL, -1; \
|
return errno = EINVAL, -1; \
|
||||||
} while (0);
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -36,7 +36,7 @@ uint8_t key_data_3des[16] = { 'C', 'a', 'r', 'd', ' ', 'M', 'a', 's', 't', 'e',
|
||||||
if ((res < 0) || (MIFARE_DESFIRE (tag)->last_picc_error != OPERATION_OK)) { \
|
if ((res < 0) || (MIFARE_DESFIRE (tag)->last_picc_error != OPERATION_OK)) { \
|
||||||
cut_fail ("%s returned %d, error: %s, errno: %s\n", last_command, res, desfire_error_lookup (MIFARE_DESFIRE (tag)->last_picc_error), strerror (errno)); \
|
cut_fail ("%s returned %d, error: %s, errno: %s\n", last_command, res, desfire_error_lookup (MIFARE_DESFIRE (tag)->last_picc_error), strerror (errno)); \
|
||||||
} \
|
} \
|
||||||
} while (0);
|
} while (0)
|
||||||
|
|
||||||
void
|
void
|
||||||
test_mifare_desfire (void)
|
test_mifare_desfire (void)
|
||||||
|
|
Loading…
Reference in a new issue