X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fsnapshot.cpp;h=1b48034c2e9c3a84d11895b6ff7e8dd221bc671b;hp=dda699fc4bcf5ea6b6b8bf4c2d546ed336c5f7d9;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/snapshot.cpp b/src/bin/lttng-sessiond/snapshot.cpp index dda699fc4..1b48034c2 100644 --- a/src/bin/lttng-sessiond/snapshot.cpp +++ b/src/bin/lttng-sessiond/snapshot.cpp @@ -157,7 +157,7 @@ int snapshot_output_init(const struct ltt_session *session, struct snapshot *snapshot) { int ret = 0, nb_uri; - struct lttng_uri *uris = NULL; + struct lttng_uri *uris = nullptr; /* Create an array of URIs from URLs. */ nb_uri = uri_parse_str_urls(ctrl_url, data_url, &uris); @@ -173,7 +173,7 @@ error: return ret; } -struct snapshot_output *snapshot_output_alloc(void) +struct snapshot_output *snapshot_output_alloc() { return zmalloc(); } @@ -244,7 +244,7 @@ void snapshot_output_destroy(struct snapshot_output *obj) struct snapshot_output *snapshot_find_output_by_name(const char *name, struct snapshot *snapshot) { struct lttng_ht_iter iter; - struct snapshot_output *output = NULL; + struct snapshot_output *output = nullptr; LTTNG_ASSERT(snapshot); LTTNG_ASSERT(name); @@ -257,7 +257,7 @@ struct snapshot_output *snapshot_find_output_by_name(const char *name, struct sn } /* Not found */ - return NULL; + return nullptr; } /* @@ -270,7 +270,7 @@ struct snapshot_output *snapshot_find_output_by_id(uint32_t id, struct snapshot { struct lttng_ht_node_ulong *node; struct lttng_ht_iter iter; - struct snapshot_output *output = NULL; + struct snapshot_output *output = nullptr; LTTNG_ASSERT(snapshot); ASSERT_RCU_READ_LOCKED();