mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-27 02:24:47 +08:00
use ARRAYLEN
This commit is contained in:
parent
2269ad6914
commit
33ef5f4243
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ typedef struct mode_t {
|
|||
|
||||
#define START_MODE_LIST mode_t *mode_list[] = {
|
||||
#define ADD_MODE(name) &MODE_INTERNAL_NAME(name),
|
||||
#define END_MODE_LIST }; static const int NUM_MODES = sizeof(mode_list) / sizeof(mode_t*);
|
||||
#define END_MODE_LIST }; static const int NUM_MODES = ARRAYLEN(mode_list);
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in a new issue