]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: make calc_elapse() return USEC_INFINITY when no timeout is requested
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 1 Oct 2023 03:04:52 +0000 (12:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 1 Oct 2023 03:41:10 +0000 (12:41 +0900)
commitf5c615889a7340a7a06508bab8ff33dbcb729a7b
tree9a535ae3dc749ed9ca3f9e6b76fd183672106b8f
parentcb88da825460c410139a9a3041af849ee2d01d5b
sd-netlink: make calc_elapse() return USEC_INFINITY when no timeout is requested

Then, timout_compare() becomes simplar, the timeout value becomes
consistent with what sd_netlink_get_timeout() provides.

This also drop unnecessary assignment of reply_callback.timeout after
the slot is dropped from the prioq.
src/libsystemd/sd-netlink/netlink-slot.c
src/libsystemd/sd-netlink/sd-netlink.c