evtone: clang-format

This commit is contained in:
Jookia 2022-06-21 23:13:07 +10:00
parent 3441a2a903
commit ed4e4c4d11

View file

@ -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) {