udevadm: avoid side-effect in assert()

this was found when trying to use __builtin_assume() with clang:
https://github.com/systemd/systemd/pull/29409#issuecomment-1743575402
This commit is contained in:
NRK
2023-10-03 01:26:48 +06:00
committed by Luca Boccassi
parent 3ed342562a
commit 6c7b1ea1be

View File

@@ -245,8 +245,8 @@ static int lock_device(
sigset_t ss;
usec_t n;
assert(sigemptyset(&ss) >= 0);
assert(sigaddset(&ss, SIGCHLD) >= 0);
assert_se(sigemptyset(&ss) >= 0);
assert_se(sigaddset(&ss, SIGCHLD) >= 0);
n = now(CLOCK_MONOTONIC);
if (n >= deadline)