aboutsummaryrefslogtreecommitdiff
path: root/src/util/asmap.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-06-06 17:22:59 +0200
committerMacroFake <falke.marco@gmail.com>2022-06-29 10:33:13 +0200
commitfacc2fa7b8a218a0df6a19772e1641ea68dda2e3 (patch)
treec2e5cf39dd2c0b88517a8bb2a83d7ca2bba2c360 /src/util/asmap.cpp
parent6666803c897e4ad27b45cb74e3a9aa74a335f1bf (diff)
Use AutoFile where possible
Diffstat (limited to 'src/util/asmap.cpp')
-rw-r--r--src/util/asmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/asmap.cpp b/src/util/asmap.cpp
index ceb8379c1c..b1aa598453 100644
--- a/src/util/asmap.cpp
+++ b/src/util/asmap.cpp
@@ -195,7 +195,7 @@ std::vector<bool> DecodeAsmap(fs::path path)
{
std::vector<bool> bits;
FILE *filestr = fsbridge::fopen(path, "rb");
- CAutoFile file(filestr, SER_DISK, CLIENT_VERSION);
+ AutoFile file{filestr};
if (file.IsNull()) {
LogPrintf("Failed to open asmap file from disk\n");
return bits;