Skip to content

Commit 96ac252

Browse files
committed
CTT - update timeval utils
1 parent f22e048 commit 96ac252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/fragmentationCache/timevalUtils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
namespace ipxp {
3030

31-
struct timeval operator+(const struct timeval& a, const struct timeval& b) noexcept
31+
inline struct timeval operator+(const struct timeval& a, const struct timeval& b) noexcept
3232
{
3333
constexpr time_t USEC_IN_SEC = 1000000;
3434

@@ -42,7 +42,7 @@ struct timeval operator+(const struct timeval& a, const struct timeval& b) noexc
4242
return result;
4343
}
4444

45-
bool operator>(const struct timeval& a, const struct timeval& b) noexcept
45+
inline bool operator>(const struct timeval& a, const struct timeval& b) noexcept
4646
{
4747
if (a.tv_sec == b.tv_sec)
4848
return a.tv_usec > b.tv_usec;

0 commit comments

Comments
 (0)