fix clang-tidy warnings

This commit is contained in:
Adrien Béraud committed 2019-03-17 19:22:28 -04:00
1 parent 4401e47002
commit 5e92777702
5 files changed
+9 -10

No files matched your search

+3 -3
View File
@@ -385,7 +385,7 @@ PrivateKey::getPublicKey() const
return pk_ret;
}
PublicKey::PublicKey(const Blob& dat) : pk(nullptr)
PublicKey::PublicKey(const Blob& dat)
{
unpack(dat.data(), dat.size());
}
@@ -572,7 +572,7 @@ PublicKey::getLongId() const
#endif
}
Certificate::Certificate(const Blob& certData) : cert(nullptr)
Certificate::Certificate(const Blob& certData)
{
unpack(certData.data(), certData.size());
}
@@ -930,7 +930,7 @@ Certificate::generate(const PrivateKey& key, const std::string& name, const Iden
return {};
Certificate ret {cert};
int64_t now = time(NULL);
int64_t now = time(nullptr);
/* 2038 bug: don't allow time wrap */
auto boundTime = [](int64_t t) -> time_t {
return std::min<int64_t>(t, std::numeric_limits<time_t>::max());