clang fix

This commit is contained in:
iceman1001
2021-04-17 15:17:39 +02:00
parent 15d14f8259
commit be6a9273ec
4 changed files with 6 additions and 7 deletions

View File

@@ -56,10 +56,10 @@ json_t *AIDSearchInit(bool verbose) {
return root;
}
json_t *AIDSearchGetElm(json_t *root, int elmindx) {
json_t *AIDSearchGetElm(json_t *root, size_t elmindx) {
json_t *data = json_array_get(root, elmindx);
if (!json_is_object(data)) {
PrintAndLogEx(ERR, "data [%d] is not an object\n", elmindx);
PrintAndLogEx(ERR, "data [%zu] is not an object\n", elmindx);
return NULL;
}
return data;
@@ -121,7 +121,7 @@ int PrintAIDDescription(json_t *xroot, char *aid, bool verbose) {
json_t *elm = NULL;
uint32_t maxaidlen = 0;
for (uint32_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);
if (data == NULL)
continue;