projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: use CPU ids from online ranges
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
clear.cpp
diff --git
a/src/lib/lttng-ctl/clear.cpp
b/src/lib/lttng-ctl/clear.cpp
index 4b5974612d14b9b5e284c535f3fcd486bf7cdd40..61b2e5041f7bb44f5ee19f28bbb864a329c1d218 100644
(file)
--- a/
src/lib/lttng-ctl/clear.cpp
+++ b/
src/lib/lttng-ctl/clear.cpp
@@
-87,7
+87,7
@@
end:
return handle;
error:
lttng_clear_handle_destroy(handle);
return handle;
error:
lttng_clear_handle_destroy(handle);
- return
NULL
;
+ return
nullptr
;
}
static int handle_state_transition(struct lttng_clear_handle *handle)
}
static int handle_state_transition(struct lttng_clear_handle *handle)
@@
-270,7
+270,7
@@
enum lttng_error_code lttng_clear_session(const char *session_name,
struct lttng_clear_handle **_handle)
{
enum lttng_error_code ret_code = LTTNG_OK;
struct lttng_clear_handle **_handle)
{
enum lttng_error_code ret_code = LTTNG_OK;
- struct lttng_clear_handle *handle =
NULL
;
+ struct lttng_clear_handle *handle =
nullptr
;
struct lttcomm_session_msg lsm = {
.cmd_type = LTTCOMM_SESSIOND_COMMAND_CLEAR_SESSION,
.session = {},
struct lttcomm_session_msg lsm = {
.cmd_type = LTTCOMM_SESSIOND_COMMAND_CLEAR_SESSION,
.session = {},
@@
-282,7
+282,7
@@
enum lttng_error_code lttng_clear_session(const char *session_name,
ssize_t comm_ret;
int ret;
ssize_t comm_ret;
int ret;
- if (session_name ==
NULL
) {
+ if (session_name ==
nullptr
) {
ret_code = LTTNG_ERR_INVALID;
goto error;
}
ret_code = LTTNG_ERR_INVALID;
goto error;
}
@@
-314,7
+314,7
@@
error:
/* Transfer the handle to the caller. */
if (_handle) {
*_handle = handle;
/* Transfer the handle to the caller. */
if (_handle) {
*_handle = handle;
- handle =
NULL
;
+ handle =
nullptr
;
}
if (sessiond_socket >= 0) {
ret = close(sessiond_socket);
}
if (sessiond_socket >= 0) {
ret = close(sessiond_socket);
This page took
0.0234 seconds
and
4
git commands to generate.