1
0
mirror of https://github.com/gluster/glusterfs.git synced 2026-02-06 18:48:16 +01:00
Files
Nikhil Ladha 8b06dd10b3 libglusterfs: prefer mallinfo2() to mallinfo() if available (#3061)
Since glibc 2.33, mallinfo() is marked obsolete due to the limited
range of 'int' type used in 'struct mallinfo', and new 'size_t'-based
counterpart 'struct mallinfo2' with corresponding function mallinfo2()
should be preferred instead. To avoid compatibility mess, it's also
reasonable to use 'uint64_t' values for storing and operating with
mallinfo data internally, as suggested by Xavi Hernandez.

Updates: #2414

> Fixes: #2414
> Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>

Change-Id: I3c8d22a6d05629af3e5700d9c699c9f39d7085b3
Signed-off-by: nik-redhat <nladha@redhat.com>

Co-authored-by: Dmitry Antipov <dantipov@cloudlinux.com>
2022-01-06 16:43:57 +05:30
..