Skip to content

Commit

Permalink
fix(userspace/libsinsp): remove warning in scanf on uint64_t
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and poiana committed Nov 23, 2023
1 parent 86b72e5 commit 78330cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 78330cf

Please sign in to comment.