summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
commit471e7ee279d633a7b48e73ece42677574a74ad39 (patch)
tree953130f3bea5155679dad88028d2a758bef94e56 /src/DabMux.cpp
parent83d2624cdfc1dd45ab1da02881448c5584ff6050 (diff)
downloaddabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.gz
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.bz2
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.zip
Modernize a few bits and pieces
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index c962818..046b149 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -188,8 +188,8 @@ int main(int argc, char *argv[])
sa.sa_handler = &signalHandler;
const int sigs[] = {SIGHUP, SIGQUIT, SIGINT, SIGTERM};
- for (int i = 0; i < 4; i++) {
- if (sigaction(sigs[i], &sa, nullptr) == -1) {
+ for (int sig : sigs) {
+ if (sigaction(sig, &sa, nullptr) == -1) {
perror("sigaction");
return EXIT_FAILURE;
}