diff options
author | Benjamin Robin <dev@benjarobin.fr> | 2020-05-06 20:30:43 +0200 |
---|---|---|
committer | Benjamin Robin <dev@benjarobin.fr> | 2020-05-06 23:03:25 +0200 |
commit | f391597c6712ad90db37fe4a79047a45f4aca86a (patch) | |
tree | a1d11ba85f79e1971a8c2978bf6ca43b71ea3b09 /src/import/import-fs.c | |
parent | tree-wide: Mark as _unused_ variables that are only used in assert() (diff) | |
download | systemd-f391597c6712ad90db37fe4a79047a45f4aca86a.tar.xz systemd-f391597c6712ad90db37fe4a79047a45f4aca86a.zip |
tree-wide: Fix, replace assert() by assert_se() when there is side effect
Diffstat (limited to 'src/import/import-fs.c')
-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 468303a6dc..5e61049ced 100644 --- a/src/import/import-fs.c +++ b/src/import/import-fs.c @@ -172,8 +172,8 @@ static int import_fs(int argc, char *argv[], void *userdata) { progress.limit = (RateLimit) { 200*USEC_PER_MSEC, 1 }; /* Hook into SIGINT/SIGTERM, so that we can cancel things then */ - assert(sigaction(SIGINT, &sa, &old_sigint_sa) >= 0); - assert(sigaction(SIGTERM, &sa, &old_sigterm_sa) >= 0); + assert_se(sigaction(SIGINT, &sa, &old_sigint_sa) >= 0); + assert_se(sigaction(SIGTERM, &sa, &old_sigterm_sa) >= 0); r = btrfs_subvol_snapshot_fd_full( fd, |