mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user