summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorBenjamin Robin <dev@benjarobin.fr>2020-05-08 13:32:11 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-10 09:23:12 +0200
commit20c3acfaad0b93990eafb6b994811db8c0617498 (patch)
tree56acac3888b59228b3ad80db2bf8ef82ca16de55 /src/import
parentupdate TODO (diff)
downloadsystemd-20c3acfaad0b93990eafb6b994811db8c0617498.tar.xz
systemd-20c3acfaad0b93990eafb6b994811db8c0617498.zip
tree-wide: Replace assert() by assert_se() when there is side effect
Diffstat (limited to 'src/import')
-rw-r--r--src/import/import-fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/import-fs.c b/src/import/import-fs.c
index 5e61049ced..db55fa50d5 100644
--- a/src/import/import-fs.c
+++ b/src/import/import-fs.c
@@ -220,8 +220,8 @@ static int import_fs(int argc, char *argv[], void *userdata) {
finish:
/* Put old signal handlers into place */
- assert(sigaction(SIGINT, &old_sigint_sa, NULL) >= 0);
- assert(sigaction(SIGTERM, &old_sigterm_sa, NULL) >= 0);
+ assert_se(sigaction(SIGINT, &old_sigint_sa, NULL) >= 0);
+ assert_se(sigaction(SIGTERM, &old_sigterm_sa, NULL) >= 0);
return 0;
}