diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2021-11-11 21:45:15 +0100 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2021-11-21 18:42:34 +0100 |
commit | f503b79a9d125249884cd46c9ee04638e3865f93 (patch) | |
tree | 499b19bead10893de02f4632e2804d4a83f94575 /src/statistics/statistics_api.c | |
parent | 20ffa0aa543853fb0d395167fb0a090c0e369db0 (diff) | |
download | gnunet-f503b79a9d125249884cd46c9ee04638e3865f93.tar.gz gnunet-f503b79a9d125249884cd46c9ee04638e3865f93.zip |
-mallinfo is deprecated in favour of mallinfo2
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index d6c2680b8..6e6acb3e5 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -270,11 +270,11 @@ update_memory_statistics (struct GNUNET_STATISTICS_Handle *h) | |||
270 | 270 | ||
271 | if (GNUNET_NO != h->do_destroy) | 271 | if (GNUNET_NO != h->do_destroy) |
272 | return; | 272 | return; |
273 | #if HAVE_MALLINFO | 273 | #if HAVE_MALLINFO2 |
274 | { | 274 | { |
275 | struct mallinfo mi; | 275 | struct mallinfo2 mi; |
276 | 276 | ||
277 | mi = mallinfo (); | 277 | mi = mallinfo2 (); |
278 | current_heap_size = mi.uordblks + mi.fordblks; | 278 | current_heap_size = mi.uordblks + mi.fordblks; |
279 | } | 279 | } |
280 | #endif | 280 | #endif |