diff --git a/evtone.c b/evtone.c index da57ead..62c8e83 100644 --- a/evtone.c +++ b/evtone.c @@ -154,19 +154,19 @@ struct sigaction action; action.sa_handler = handle_signal; action.sa_flags = 0; - if(sigemptyset(&action.sa_mask)) { + if (sigemptyset(&action.sa_mask)) { fprintf(stderr, "Unable to empty signal mask: %s\n", strerror(errno)); return 1; } - if(sigaction(SIGINT, &action, NULL) == -1) { + if (sigaction(SIGINT, &action, NULL) == -1) { fprintf(stderr, "Unable to catch SIGINT: %s\n", strerror(errno)); return 1; } - if(sigaction(SIGTERM, &action, NULL) == -1) { + if (sigaction(SIGTERM, &action, NULL) == -1) { fprintf(stderr, "Unable to catch SIGTERM: %s\n", strerror(errno)); return 1; } - if(sigaction(SIGPIPE, &action, NULL) == -1) { + if (sigaction(SIGPIPE, &action, NULL) == -1) { fprintf(stderr, "Unable to catch SIGPIPE: %s\n", strerror(errno)); return 1; } @@ -176,7 +176,7 @@ int play_tones(int dry_run, const char *device, struct tone_cmd *tones, int tone_count) { _cleanup_fd_ int dev = open_device(dry_run, device); - if(setup_signals() == -1) { + if (setup_signals() == -1) { return 1; } if (dev == -1) {