Memory (Linux): fix compiler warnings

This commit is contained in:
李通洲
2023-11-25 19:40:36 +08:00
parent 96d60184d5
commit f63f31db0a
+2 -2
View File
@@ -34,11 +34,11 @@ const char* ffDetectMemory(FFMemoryResult* ram)
if (++count >= 6) goto done;
break;
case 'M':
if(sscanf(line, "MemTotal: %" PRIu64, &memTotal) > 0 || sscanf(line, "MemFree: %u", &memFree) > 0)
if(sscanf(line, "MemTotal: %" PRIu64, &memTotal) > 0 || sscanf(line, "MemFree: %" PRIu64, &memFree) > 0)
if (++count >= 6) goto done;
break;
case 'S':
if(sscanf(line, "Shmem: %" PRIu64, &shmem) > 0 || sscanf(line, "SReclaimable: %u", &sReclaimable) > 0)
if(sscanf(line, "Shmem: %" PRIu64, &shmem) > 0 || sscanf(line, "SReclaimable: %" PRIu64, &sReclaimable) > 0)
if (++count >= 6) goto done;
break;
}