aboutsummaryrefslogtreecommitdiff
path: root/gold/main.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2021-03-19 15:29:49 -0700
committerCary Coutant <ccoutant@gmail.com>2021-03-19 15:29:49 -0700
commitcc1849716f5c217a38ee416b48da1914a8ab66cb (patch)
tree7aa82a507ca742fa3d728c125cde1efdff242f9e /gold/main.cc
parent9331846e44b34c985017264ee58a31b8bf2d5742 (diff)
downloadgdb-cc1849716f5c217a38ee416b48da1914a8ab66cb.zip
gdb-cc1849716f5c217a38ee416b48da1914a8ab66cb.tar.gz
gdb-cc1849716f5c217a38ee416b48da1914a8ab66cb.tar.bz2
Fix typo in previous patch: should use struct mallinfo2.
PR gold/26585 * main.cc (main): Fix typo in previous patch.
Diffstat (limited to 'gold/main.cc')
-rw-r--r--gold/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/main.cc b/gold/main.cc
index 89bc40b..ff44cbb 100644
--- a/gold/main.cc
+++ b/gold/main.cc
@@ -291,7 +291,7 @@ main(int argc, char** argv)
elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
#if defined(HAVE_MALLINFO2)
- struct mallinfo m = mallinfo2();
+ struct mallinfo2 m = mallinfo2();
fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
program_name, static_cast<long long>(m.arena));
#elif defined(HAVE_MALLINFO)