clang fixes
This commit is contained in:
@@ -103,7 +103,7 @@ bool AIDGetFromElm(json_t *data, uint8_t *aid, size_t aidmaxlen, int *aidlen) {
|
|||||||
if (hexaid == NULL || strlen(hexaid) == 0)
|
if (hexaid == NULL || strlen(hexaid) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int res = param_gethex_to_eol(hexaid, 0, aid, aidmaxlen, aidlen);
|
int res = param_gethex_to_eol(hexaid, 0, aid, (int)aidmaxlen, aidlen);
|
||||||
if (res)
|
if (res)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ int PrintAIDDescription(json_t *xroot, char *aid, bool verbose) {
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
json_t *elm = NULL;
|
json_t *elm = NULL;
|
||||||
uint32_t maxaidlen = 0;
|
size_t maxaidlen = 0;
|
||||||
for (size_t elmindx = 0; elmindx < json_array_size(root); elmindx++) {
|
for (size_t elmindx = 0; elmindx < json_array_size(root); elmindx++) {
|
||||||
json_t *data = AIDSearchGetElm(root, elmindx);
|
json_t *data = AIDSearchGetElm(root, elmindx);
|
||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user