From 78330cfbda6c4965dbd83b48573ae8f1c45bd899 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 23 Nov 2023 15:04:21 +0000 Subject: [PATCH] fix(userspace/libsinsp): remove warning in scanf on uint64_t Signed-off-by: Jason Dellaluce --- userspace/libsinsp/stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/stats.cpp b/userspace/libsinsp/stats.cpp index 82e8fcc0ef..47d09b61ff 100644 --- a/userspace/libsinsp/stats.cpp +++ b/userspace/libsinsp/stats.cpp @@ -151,7 +151,7 @@ void get_rss_vsz_pss_total_memory_and_open_fds(uint32_t &rss, uint32_t &vsz, uin ASSERT(false); return; } - int matched_fds = fscanf(f, "%llu", &open_fds_host); + int matched_fds = fscanf(f, "%lu", &open_fds_host); fclose(f); if (matched_fds != 1) {