mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
util: add missing include and fix function signature
This commit is contained in:
parent
74981aa02d
commit
8847ce44e0
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <util/readwritefile.h>
|
||||
|
||||
#include <fs.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -11,7 +13,7 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
std::pair<bool,std::string> ReadBinaryFile(const fs::path &filename, size_t maxsize=std::numeric_limits<size_t>::max())
|
||||
std::pair<bool,std::string> ReadBinaryFile(const fs::path &filename, size_t maxsize)
|
||||
{
|
||||
FILE *f = fsbridge::fopen(filename, "rb");
|
||||
if (f == nullptr)
|
||||
|
|
Loading…
Reference in a new issue