projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ini parser: truncation of value name
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
clear.cpp
diff --git
a/src/bin/lttng-sessiond/clear.cpp
b/src/bin/lttng-sessiond/clear.cpp
index 03be82d65f1ae370a2fe55c69053de5038e84fd6..ced9925943b83d543676ce45d191806f6d8472f2 100644
(file)
--- a/
src/bin/lttng-sessiond/clear.cpp
+++ b/
src/bin/lttng-sessiond/clear.cpp
@@
-56,7
+56,7
@@
static void cmd_clear_session_reply(const struct ltt_session *session, void *_re
int cmd_clear_session(struct ltt_session *session, int *sock_fd)
{
int ret = LTTNG_OK;
int cmd_clear_session(struct ltt_session *session, int *sock_fd)
{
int ret = LTTNG_OK;
- struct cmd_clear_session_reply_context *reply_context =
NULL
;
+ struct cmd_clear_session_reply_context *reply_context =
nullptr
;
bool session_was_active = false;
struct ltt_kernel_session *ksession;
struct ltt_ust_session *usess;
bool session_was_active = false;
struct ltt_kernel_session *ksession;
struct ltt_ust_session *usess;
@@
-158,11
+158,11
@@
int cmd_clear_session(struct ltt_session *session, int *sock_fd)
* On success, ownership of reply_context has been
* passed to session_add_clear_notifier().
*/
* On success, ownership of reply_context has been
* passed to session_add_clear_notifier().
*/
- reply_context =
NULL
;
+ reply_context =
nullptr
;
*sock_fd = -1;
}
ret = cmd_rotate_session(
*sock_fd = -1;
}
ret = cmd_rotate_session(
- session,
NULL
, true, LTTNG_TRACE_CHUNK_COMMAND_TYPE_DELETE);
+ session,
nullptr
, true, LTTNG_TRACE_CHUNK_COMMAND_TYPE_DELETE);
if (ret != LTTNG_OK) {
goto end;
}
if (ret != LTTNG_OK) {
goto end;
}
@@
-172,7
+172,7
@@
int cmd_clear_session(struct ltt_session *session, int *sock_fd)
}
if (session_was_active) {
/* Kernel tracing */
}
if (session_was_active) {
/* Kernel tracing */
- if (ksession !=
NULL
) {
+ if (ksession !=
nullptr
) {
DBG("Start kernel tracing session \"%s\"", session->name);
ret = start_kernel_session(ksession);
if (ret != LTTNG_OK) {
DBG("Start kernel tracing session \"%s\"", session->name);
ret = start_kernel_session(ksession);
if (ret != LTTNG_OK) {
This page took
0.023821 seconds
and
4
git commands to generate.