diff options
author | Benjamin Robin <dev@benjarobin.fr> | 2020-05-08 13:32:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-05-10 09:23:12 +0200 |
commit | 20c3acfaad0b93990eafb6b994811db8c0617498 (patch) | |
tree | 56acac3888b59228b3ad80db2bf8ef82ca16de55 /src/import | |
parent | update TODO (diff) | |
download | systemd-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.c | 4 |
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; } |