Page MenuHomePhabricator

net: move MillisToTimeval() from netbase to util/time
ClosedPublic

Authored by PiRK on Feb 7 2022, 17:26.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC824cdcfc4281: net: move MillisToTimeval() from netbase to util/time
Summary

Move MillisToTimeval() from netbase.{h,cpp} to
src/util/system.{h,cpp}.

This is necessary in order to use MillisToTimeval() from a newly
introduced src/util/sock.{h,cpp} which cannot depend on netbase
because netbase will depend on it.

This is a backport of [[https://github.com/bitcoin/bitcoin/pull/20788 | core#20788]] [1/5]
https://github.com/bitcoin/bitcoin/pull/20788/commits/aa17a44551c03b00a47854438afe9f2f89b6ea74

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable