.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / utils / testapp / signal-helper.hpp
index ceadcb37277225bab6adf92667032888f6be49a0..26272e37e4ad599a49acaa66677f8c67bc4c38d3 100644 (file)
@@ -9,19 +9,18 @@
 #define LTTNG_TESTAPP_SIGNAL_HELPER_H
 
 #include <signal.h>
+#include <stdio.h>
 
 static volatile int should_quit;
 
-static
-void sighandler(int sig)
+static void sighandler(int sig)
 {
        if (sig == SIGTERM) {
                should_quit = 1;
        }
 }
 
-static
-int set_signal_handler(void)
+static int set_signal_handler()
 {
        int ret;
        struct sigaction sa {};
@@ -34,7 +33,7 @@ int set_signal_handler(void)
                goto end;
        }
 
-       ret = sigaction(SIGTERM, &sa, NULL);
+       ret = sigaction(SIGTERM, &sa, nullptr);
        if (ret) {
                perror("sigaction");
                goto end;
This page took 0.023079 seconds and 4 git commands to generate.