summaryrefslogtreecommitdiffstats
path: root/src/monitor
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-21 11:13:56 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-22 20:05:14 +0200
commit6f6f757d31ddbab13e5b4c2c1aad3e7d0dae722a (patch)
tree1822c777907ffb6ed0f30cdd2ebdf0d63422f8bb /src/monitor
parent38bf0c9a44ff9dccf38a2ed62a0ad2ad8b58c44e (diff)
downloadsssd-6f6f757d31ddbab13e5b4c2c1aad3e7d0dae722a.tar.gz
sssd-6f6f757d31ddbab13e5b4c2c1aad3e7d0dae722a.tar.xz
sssd-6f6f757d31ddbab13e5b4c2c1aad3e7d0dae722a.zip
Use brackets around macros.
warnings reported by cppcheck.
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 67811ac16..7604b3098 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -1420,9 +1420,9 @@ static void monitor_quit(struct mt_ctx *mt_ctx, int ret)
}
} else if (pid != 0) {
error = 0;
- if WIFEXITED(status) {
+ if (WIFEXITED(status)) {
DEBUG(1, ("Child [%s] exited gracefully\n", svc->name));
- } else if WIFSIGNALED(status) {
+ } else if (WIFSIGNALED(status)) {
DEBUG(1, ("Child [%s] terminated with a signal\n", svc->name));
} else {
DEBUG(0, ("Child [%s] did not exit cleanly\n", svc->name));
@@ -2573,11 +2573,11 @@ static void mt_svc_exit_handler(int pid, int wait_status, void *pvt)
struct timeval tv;
int restart_delay;
- if WIFEXITED(wait_status) {
+ if (WIFEXITED(wait_status)) {
DEBUG(SSSDBG_OP_FAILURE,
("Child [%s] exited with code [%d]\n",
svc->name, WEXITSTATUS(wait_status)));
- } else if WIFSIGNALED(wait_status) {
+ } else if (WIFSIGNALED(wait_status)) {
DEBUG(SSSDBG_OP_FAILURE,
("Child [%s] terminated with signal [%d]\n",
svc->name, WTERMSIG(wait_status)));