Compile fixes for alternative compilers.
This commit is contained in:
@@ -32,7 +32,7 @@ void Controller::handleTransaction()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (channels.size() != 0 && chrono::duration_cast<chrono::seconds>(chrono::system_clock::now() - lastMessage) < 5s)
|
if (channels.size() != 0 && chrono::duration_cast<chrono::seconds>(chrono::system_clock::now() - lastMessage) < chrono::seconds(5))
|
||||||
toggleACTLED();
|
toggleACTLED();
|
||||||
else
|
else
|
||||||
enableACTLED(false);
|
enableACTLED(false);
|
||||||
|
|||||||
@@ -48,13 +48,13 @@ void Storage::init(const string &dirPrefix)
|
|||||||
throw runtime_error{ string{ "Invalid syntax of line " } + strLineNum };
|
throw runtime_error{ string{ "Invalid syntax of line " } + strLineNum };
|
||||||
|
|
||||||
char *endP = nullptr;
|
char *endP = nullptr;
|
||||||
auto keyH{ static_cast<Storage::KeyHandle>(strtoull(keyHStr.c_str(), &endP, 10)) };
|
Storage::KeyHandle keyH{ static_cast<Storage::KeyHandle>(strtoull(keyHStr.c_str(), &endP, 10)) };
|
||||||
|
|
||||||
if (!endP)
|
if (!endP)
|
||||||
throw runtime_error{ "Invalid keyhandle format on line " + strLineNum };
|
throw runtime_error{ "Invalid keyhandle format on line " + strLineNum };
|
||||||
|
|
||||||
endP = nullptr;
|
endP = nullptr;
|
||||||
auto keyC{ static_cast<Storage::KeyCount>(strtoull(keyCStr.c_str(), &endP, 10)) };
|
Storage::KeyCount keyC{ static_cast<Storage::KeyCount>(strtoull(keyCStr.c_str(), &endP, 10)) };
|
||||||
|
|
||||||
if (!endP)
|
if (!endP)
|
||||||
throw runtime_error{ "Invalid key count format on line " + strLineNum };
|
throw runtime_error{ "Invalid key count format on line " + strLineNum };
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
struct U2FMessage
|
struct U2FMessage
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user