mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[#3119] static cast time_t to uint32
This commit is contained in:
committed by
Razvan Becheriu
parent
ff39af2b08
commit
78acb9cec0
@@ -67,7 +67,7 @@ public:
|
||||
}
|
||||
|
||||
// Init with the current time
|
||||
rng_.seed(time(NULL));
|
||||
rng_.seed(time(0));
|
||||
}
|
||||
|
||||
/// \brief Generate uniformly distributed integer
|
||||
|
@@ -221,7 +221,7 @@ CSVLeaseFile6::readCltt(const CSVRow& row) {
|
||||
time_t cltt =
|
||||
static_cast<time_t>(row.readAndConvertAt<uint64_t>(getColumnIndex("expire"))
|
||||
- readValid(row));
|
||||
return (cltt);
|
||||
return (static_cast<uint32_t>(cltt));
|
||||
}
|
||||
|
||||
SubnetID
|
||||
|
Reference in New Issue
Block a user