mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Use ARRAYLEN
This commit is contained in:
parent
da09131aa3
commit
1147c9faf8
5 changed files with 7 additions and 7 deletions
|
@ -99,7 +99,7 @@ static int asn1_tlv_compare(const void *a, const void *b) {
|
|||
}
|
||||
|
||||
static const struct asn1_tag *asn1_get_tag(const struct tlv *tlv) {
|
||||
struct asn1_tag *tag = bsearch(tlv, asn1_tags, sizeof(asn1_tags) / sizeof(asn1_tags[0]),
|
||||
struct asn1_tag *tag = bsearch(tlv, asn1_tags, ARRAYLEN(asn1_tags),
|
||||
sizeof(asn1_tags[0]), asn1_tlv_compare);
|
||||
|
||||
return tag ? tag : &asn1_tags[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue