evtone: clang-format
This commit is contained in:
parent
3441a2a903
commit
ed4e4c4d11
1 changed files with 5 additions and 5 deletions
10
evtone.c
10
evtone.c
|
@ -154,19 +154,19 @@ int setup_signals(void) {
|
|||
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 setup_signals(void) {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue