Skip to content

Commit

Permalink
windooooows
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 16, 2024
1 parent 14bfa88 commit 8c151bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dpp/dave/persisted_key_pair_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 8c151bb

Please sign in to comment.