Tests: Fix memory leaks in test_block_header.
[xz/debian.git] / src / liblzma / common / hardware_physmem.c
bloba2bbbe29d4b45aa2e9893f5b27837c1f782536b5
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file hardware_physmem.c
4 /// \brief Get the total amount of physical memory (RAM)
5 //
6 // Author: Jonathan Nieder
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #include "common.h"
15 #include "tuklib_physmem.h"
18 extern LZMA_API(uint64_t)
19 lzma_physmem(void)
21 // It is simpler to make lzma_physmem() a wrapper for
22 // tuklib_physmem() than to hack appropriate symbol visibility
23 // support for the tuklib modules.
24 return tuklib_physmem();