clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / tests / utils / testapp / signal-helper.hpp
index ceadcb37277225bab6adf92667032888f6be49a0..ba2c86a39da25e73aa6437bbcce6e1d4b4f548c7 100644 (file)
@@ -9,6 +9,7 @@
 #define LTTNG_TESTAPP_SIGNAL_HELPER_H
 
 #include <signal.h>
+#include <stdio.h>
 
 static volatile int should_quit;
 
@@ -21,7 +22,7 @@ void sighandler(int sig)
 }
 
 static
-int set_signal_handler(void)
+int set_signal_handler()
 {
        int ret;
        struct sigaction sa {};
@@ -34,7 +35,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.024309 seconds and 4 git commands to generate.