projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: run format-cpp on the tree
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
signal-helper.hpp
diff --git
a/tests/utils/testapp/signal-helper.hpp
b/tests/utils/testapp/signal-helper.hpp
index ceadcb37277225bab6adf92667032888f6be49a0..26272e37e4ad599a49acaa66677f8c67bc4c38d3 100644
(file)
--- a/
tests/utils/testapp/signal-helper.hpp
+++ b/
tests/utils/testapp/signal-helper.hpp
@@
-9,19
+9,18
@@
#define LTTNG_TESTAPP_SIGNAL_HELPER_H
#include <signal.h>
#define LTTNG_TESTAPP_SIGNAL_HELPER_H
#include <signal.h>
+#include <stdio.h>
static volatile int should_quit;
static volatile int should_quit;
-static
-void sighandler(int sig)
+static void sighandler(int sig)
{
if (sig == SIGTERM) {
should_quit = 1;
}
}
{
if (sig == SIGTERM) {
should_quit = 1;
}
}
-static
-int set_signal_handler(void)
+static int set_signal_handler()
{
int ret;
struct sigaction sa {};
{
int ret;
struct sigaction sa {};
@@
-34,7
+33,7
@@
int set_signal_handler(void)
goto end;
}
goto end;
}
- ret = sigaction(SIGTERM, &sa,
NULL
);
+ ret = sigaction(SIGTERM, &sa,
nullptr
);
if (ret) {
perror("sigaction");
goto end;
if (ret) {
perror("sigaction");
goto end;
This page took
0.025235 seconds
and
4
git commands to generate.