From: Toshiaki Takahashi Date: Tue, 15 May 2018 09:25:29 +0000 (+0000) Subject: run contrib/format.sh src/collectdmon.c X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a37bd9e2b8940891d61d04bda76065fab4d7d152;p=collectd.git run contrib/format.sh src/collectdmon.c --- 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);