From a37bd9e2b8940891d61d04bda76065fab4d7d152 Mon Sep 17 00:00:00 2001 From: Toshiaki Takahashi Date: Tue, 15 May 2018 09:25:29 +0000 Subject: [PATCH] run contrib/format.sh src/collectdmon.c --- src/collectdmon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/collectdmon.c b/src/collectdmon.c index 36cd939a..0e2b0214 100644 --- a/src/collectdmon.c +++ b/src/collectdmon.c @@ -135,7 +135,7 @@ static int daemonize(void) { } pid_t pid = fork(); - if (pid < 0) { + if (pid < 0) { fprintf(stderr, "Error: fork() failed: %s\n", strerror(errno)); return -1; } else if (pid != 0) { @@ -323,8 +323,7 @@ int main(int argc, char **argv) { } struct sigaction sa = { - .sa_handler = sig_int_term_handler, - .sa_flags = 0, + .sa_handler = sig_int_term_handler, .sa_flags = 0, }; sigemptyset(&sa.sa_mask); -- 2.11.0