From f63f31db0a566e09ef6cf1d6281a30f4bf9b6d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 25 Nov 2023 19:40:36 +0800 Subject: [PATCH] Memory (Linux): fix compiler warnings --- src/detection/memory/memory_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/memory/memory_linux.c b/src/detection/memory/memory_linux.c index 7b940303e..1932896b6 100644 --- a/src/detection/memory/memory_linux.c +++ b/src/detection/memory/memory_linux.c @@ -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; }