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]
/
src
/
common
/
location.cpp
diff --git
a/src/common/location.cpp
b/src/common/location.cpp
index 7d9a95a711c31e98db842ce19b04bea1b2cd6984..cd4b03a47cdb7c76c0e1928c76e8b25a30f72cba 100644
(file)
--- a/
src/common/location.cpp
+++ b/
src/common/location.cpp
@@
-65,7
+65,7
@@
void lttng_trace_archive_location_put(struct lttng_trace_archive_location *locat
struct lttng_trace_archive_location *
lttng_trace_archive_location_local_create(const char *absolute_path)
{
struct lttng_trace_archive_location *
lttng_trace_archive_location_local_create(const char *absolute_path)
{
- struct lttng_trace_archive_location *location =
NULL
;
+ struct lttng_trace_archive_location *location =
nullptr
;
if (!absolute_path) {
goto end;
if (!absolute_path) {
goto end;
@@
-85,7
+85,7
@@
end:
return location;
error:
lttng_trace_archive_location_put(location);
return location;
error:
lttng_trace_archive_location_put(location);
- return
NULL
;
+ return
nullptr
;
}
struct lttng_trace_archive_location *lttng_trace_archive_location_relay_create(
}
struct lttng_trace_archive_location *lttng_trace_archive_location_relay_create(
@@
-95,7
+95,7
@@
struct lttng_trace_archive_location *lttng_trace_archive_location_relay_create(
uint16_t data_port,
const char *relative_path)
{
uint16_t data_port,
const char *relative_path)
{
- struct lttng_trace_archive_location *location =
NULL
;
+ struct lttng_trace_archive_location *location =
nullptr
;
if (!host || !relative_path) {
goto end;
if (!host || !relative_path) {
goto end;
@@
-122,7
+122,7
@@
end:
return location;
error:
lttng_trace_archive_location_put(location);
return location;
error:
lttng_trace_archive_location_put(location);
- return
NULL
;
+ return
nullptr
;
}
ssize_t
}
ssize_t
This page took
0.024792 seconds
and
4
git commands to generate.