diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-09 04:03:11 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-09 04:03:15 +0100 |
commit | 7bd34436ab676eee1ace2684eb785e536846e199 (patch) | |
tree | 20825c7d95117ad894f621e3450f94de4e23bb2d /src/mds-base.c | |
parent | do no print whence an error occurred if it is EMSGSIZE, ECONNRESET or EINTR, those are not real errors, just abnormalities (diff) | |
download | mds-7bd34436ab676eee1ace2684eb785e536846e199.tar.gz mds-7bd34436ab676eee1ace2684eb785e536846e199.tar.bz2 mds-7bd34436ab676eee1ace2684eb785e536846e199.tar.xz |
make fail_if friendlier to complex if-statements
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-base.c')
-rw-r--r-- | src/mds-base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-base.c b/src/mds-base.c index e80b902..85f0ef7 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -630,9 +630,9 @@ int trap_signals(void) /* Implement death on SIGDANGER or ignoral of SIGDANGER. */ if (server_characteristics.danger_is_deadly && !is_immortal) - { fail_if (xsigaction(SIGDANGER, commit_suicide) < 0); } + fail_if (xsigaction(SIGDANGER, commit_suicide) < 0); else - { fail_if (xsigaction(SIGDANGER, received_danger) < 0); } + fail_if (xsigaction(SIGDANGER, received_danger) < 0); return 0; fail: |