mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 10:53:06 +00:00
use ARRAYLEN
This commit is contained in:
1 parent
2269ad6914
commit
33ef5f4243
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user