From: Thomas Markwalder Date: Mon, 29 Jun 2026 17:38:04 +0000 (-0400) Subject: [#4563] Fix clang compiler warnings X-Git-Tag: Kea-3.3.0~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828c1a4fc4ee8f2fd67880bc2a21848e06c0009d;p=thirdparty%2Fkea.git [#4563] Fix clang compiler warnings modified: src/hooks/dhcp/forensic_log/rotating_file.cc --- diff --git a/src/hooks/dhcp/forensic_log/rotating_file.cc b/src/hooks/dhcp/forensic_log/rotating_file.cc index 4f9b553fe0..6d6986d216 100644 --- a/src/hooks/dhcp/forensic_log/rotating_file.cc +++ b/src/hooks/dhcp/forensic_log/rotating_file.cc @@ -233,7 +233,7 @@ RotatingFile::useExistingFiles(struct tm& time_info) { return; } time_t current_timestamp = mktime(&time_info); - if (current_timestamp < (file_timestamp + count_)) { + if (current_timestamp < (file_timestamp + static_cast(count_))) { localtime_r(&file_timestamp, &time_info); } else { file.clear(); @@ -329,7 +329,7 @@ RotatingFile::rotate() { if (!isOpen()) { rotate_file = true; } else if (time_unit_ == TimeUnit::Second) { - if (count_ <= (timestamp - timestamp_)) { + if (static_cast(count_) <= (timestamp - timestamp_)) { rotate_file = true; } } else if (time_unit_ == TimeUnit::Day) {