From 8c151bb99998c2e20d5271dc5359062dddd9cc48 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Wed, 16 Oct 2024 13:17:21 +0000 Subject: [PATCH] windooooows --- src/dpp/dave/persisted_key_pair_generic.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dpp/dave/persisted_key_pair_generic.cpp b/src/dpp/dave/persisted_key_pair_generic.cpp index 990ce9887e..cf1f056fee 100755 --- a/src/dpp/dave/persisted_key_pair_generic.cpp +++ b/src/dpp/dave/persisted_key_pair_generic.cpp @@ -106,9 +106,9 @@ std::shared_ptr<::mlspp::SignaturePrivateKey> get_generic_persisted_key_pair(dpp return nullptr; } - std::stringstream s; - s << ifs.rdbuf(); - curstr = s.str(); + std::stringstream s; + s << ifs.rdbuf(); + curstr = s.str(); if (!ifs) { creator.log(dpp::ll_warning, "Failed to read key in get_persisted_key_pair"); return nullptr; @@ -141,7 +141,7 @@ std::shared_ptr<::mlspp::SignaturePrivateKey> get_generic_persisted_key_pair(dpp } #ifdef _WIN32 - ssize_t written = _write(fd, newstr.c_str(), newstr.size()); + int written = _write(fd, newstr.c_str(), newstr.size()); _close(fd); #else ssize_t written = write(fd, newstr.c_str(), newstr.size());