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
/
utils
/
testapp
/
gen-ust-tracef
/
gen-ust-tracef.cpp
diff --git
a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.cpp
b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.cpp
index f0f6cc63c372465363bda2b453c466d810580f3f..8389b3f76b26f768502c982a21ee775e2d0374da 100644
(file)
--- a/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.cpp
+++ b/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.cpp
@@
-7,6
+7,12
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include "signal-helper.hpp"
+
+#include <common/macros.hpp>
+
+#include <lttng/tracef.h>
+
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
@@
-17,14
+23,9
@@
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
-#include <common/macros.h>
-#include <lttng/tracef.h>
-#include "signal-helper.h"
-
const char *str = "test string";
const char *str = "test string";
-static
-void create_file(const char *path)
+static void create_file(const char *path)
{
int ret;
{
int ret;
@@
-44,7
+45,7
@@
int main(int argc, char **argv)
int i;
unsigned int nr_iter = 100;
useconds_t nr_usec = 0;
int i;
unsigned int nr_iter = 100;
useconds_t nr_usec = 0;
- char *tmp_file_path =
NULL
;
+ char *tmp_file_path =
nullptr
;
if (set_signal_handler()) {
return 1;
if (set_signal_handler()) {
return 1;
This page took
0.023028 seconds
and
4
git commands to generate.