summaryrefslogtreecommitdiffstats
path: root/src/import/import-fs.c
diff options
context:
space:
mode:
authorBenjamin Robin <dev@benjarobin.fr>2020-05-06 20:30:43 +0200
committerBenjamin Robin <dev@benjarobin.fr>2020-05-06 23:03:25 +0200
commitf391597c6712ad90db37fe4a79047a45f4aca86a (patch)
treea1d11ba85f79e1971a8c2978bf6ca43b71ea3b09 /src/import/import-fs.c
parenttree-wide: Mark as _unused_ variables that are only used in assert() (diff)
downloadsystemd-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.c4
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,