.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / utils / testapp / signal-helper.hpp
index cff564951015382fde8b97ca20b6b3a67155284d..26272e37e4ad599a49acaa66677f8c67bc4c38d3 100644 (file)
 
 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 {};
@@ -35,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.023614 seconds and 4 git commands to generate.