summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-12 16:52:22 +0200
committerLennart Poettering <lennart@poettering.net>2022-04-12 18:45:20 +0200
commit5180394b38eff06deb3307c3c04c17a93d51587f (patch)
treee79babd38776cfc8e1d10d726bf9b36186c27cf1 /src/core
parentMerge pull request #23057 from keszybz/various-doc-tweaks (diff)
downloadsystemd-5180394b38eff06deb3307c3c04c17a93d51587f.tar.xz
systemd-5180394b38eff06deb3307c3c04c17a93d51587f.zip
core: use assert_se() which takes side-effect
Fixes #23059.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index c6e9e9b034..438405bda2 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -2051,7 +2051,7 @@ static void log_execution_mode(bool *ret_first_boot) {
}
}
- assert(uname(&uts) >= 0);
+ assert_se(uname(&uts) >= 0);
if (strverscmp_improved(uts.release, KERNEL_BASELINE_VERSION) < 0)
log_warning("Warning! Reported kernel version %s is older than systemd's required baseline kernel version %s. "