projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: main.cpp: iterate on list using list_iteration_adapter
[lttng-tools.git]
/
src
/
common
/
testpoint
/
testpoint.cpp
diff --git
a/src/common/testpoint/testpoint.cpp
b/src/common/testpoint/testpoint.cpp
index 753b79594754c8e96875faec3ccfa0a7c6d5c72d..7d41fae5fa381d5299012a400799ccc940fd9d36 100644
(file)
--- a/
src/common/testpoint/testpoint.cpp
+++ b/
src/common/testpoint/testpoint.cpp
@@
-23,12
+23,12
@@
int lttng_testpoint_activated;
/*
* Toggle the support for testpoints on the application startup.
*/
/*
* Toggle the support for testpoints on the application startup.
*/
-static void __attribute__((constructor)) lttng_testpoint_check(
void
)
+static void __attribute__((constructor)) lttng_testpoint_check()
{
{
- char *testpoint_env_val =
NULL
;
+ char *testpoint_env_val =
nullptr
;
testpoint_env_val = getenv(lttng_testpoint_env_var);
testpoint_env_val = getenv(lttng_testpoint_env_var);
- if (testpoint_env_val !=
NULL
&& (strncmp(testpoint_env_val, "1", 1) == 0)) {
+ if (testpoint_env_val !=
nullptr
&& (strncmp(testpoint_env_val, "1", 1) == 0)) {
lttng_testpoint_activated = 1;
}
}
lttng_testpoint_activated = 1;
}
}
@@
-42,7
+42,7
@@
static void __attribute__((constructor)) lttng_testpoint_check(void)
void *lttng_testpoint_lookup(const char *name)
{
if (!name) {
void *lttng_testpoint_lookup(const char *name)
{
if (!name) {
- return
NULL
;
+ return
nullptr
;
}
return dlsym(RTLD_DEFAULT, name);
}
return dlsym(RTLD_DEFAULT, name);
This page took
0.023433 seconds
and
4
git commands to generate.