pointless whitespace/comment fixes, no code changes
[oweals/busybox.git] / miscutils / rx.c
index 9a8fcaa2075d60529999fd2bf1be9881e6c59c0c..94eb4522d33af5c379d4e5613ffc65c8de387396 100644 (file)
@@ -213,14 +213,13 @@ static int receive(/*int read_fd, */int file_fd)
        } /* for (;;) */
 }
 
-static void sigalrm_handler(int ATTRIBUTE_UNUSED signum)
+static void sigalrm_handler(int UNUSED_PARAM signum)
 {
 }
 
 int rx_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int rx_main(int argc, char **argv)
 {
-       struct sigaction act;
        struct termios tty, orig_tty;
        int termios_err;
        int file_fd;
@@ -243,9 +242,7 @@ int rx_main(int argc, char **argv)
        }
 
        /* No SA_RESTART: we want ALRM to interrupt read() */
-       memset(&act, 0, sizeof(act));
-       act.sa_handler = sigalrm_handler;
-       sigaction(SIGALRM, &act, NULL);
+       signal_no_SA_RESTART_empty_mask(SIGALRM, sigalrm_handler);
 
        n = receive(file_fd);