projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use compiler-agnostic defines to silence warning
[lttng-tools.git]
/
tests
/
regression
/
tools
/
health
/
health_stall.c
diff --git
a/tests/regression/tools/health/health_stall.c
b/tests/regression/tools/health/health_stall.c
index d01ad4cb9210c2b854af4165b5c96fdec0e37c98..c88e5742a30b08ec6cac328e0ff5de742986a9c1 100644
(file)
--- a/
tests/regression/tools/health/health_stall.c
+++ b/
tests/regression/tools/health/health_stall.c
@@
-7,9
+7,10
@@
*/
#include <lttng/lttng-export.h>
*/
#include <lttng/lttng-export.h>
+
+#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <pthread.h>
#include <unistd.h>
#include <urcu.h>
#include <unistd.h>
#include <urcu.h>
@@
-19,8
+20,7
@@
* Check if the specified environment variable is set.
* Return 1 if set, otherwise 0.
*/
* Check if the specified environment variable is set.
* Return 1 if set, otherwise 0.
*/
-static
-int check_env_var(const char *env)
+static int check_env_var(const char *env)
{
if (env) {
char *env_val = getenv(env);
{
if (env) {
char *env_val = getenv(env);
@@
-32,8
+32,7
@@
int check_env_var(const char *env)
return 0;
}
return 0;
}
-static
-void do_stall(void)
+static void do_stall(void)
{
unsigned int sleep_time = STALL_TIME;
{
unsigned int sleep_time = STALL_TIME;
This page took
0.023783 seconds
and
4
git commands to generate.