/* Condition is not valid if this is not true. */
LTTNG_ASSERT(a->session_name);
LTTNG_ASSERT(b->session_name);
- if (strcmp(a->session_name, b->session_name)) {
+ if (strcmp(a->session_name, b->session_name) != 0) {
goto end;
}
LTTNG_ASSERT(a->channel_name);
LTTNG_ASSERT(b->channel_name);
- if (strcmp(a->channel_name, b->channel_name)) {
+ if (strcmp(a->channel_name, b->channel_name) != 0) {
goto end;
}
int ret;
enum lttng_error_code ret_code;
enum lttng_condition_status status;
- const char *session_name = NULL, *channel_name = NULL;
+ const char *session_name = nullptr, *channel_name = nullptr;
enum lttng_domain_type domain_type;
bool is_threshold_bytes = false;
double threshold_ratio;
uint64_t threshold_bytes;
- const char *condition_type_str = NULL;
+ const char *condition_type_str = nullptr;
LTTNG_ASSERT(condition);
LTTNG_ASSERT(IS_USAGE_CONDITION(condition));
condition = zmalloc<lttng_condition_buffer_usage>();
if (!condition) {
- return NULL;
+ return nullptr;
}
lttng_condition_init(&condition->parent, type);
struct lttng_payload_view *view)
{
const struct lttng_evaluation_buffer_usage_comm *comm = (typeof(comm)) view->buffer.data;
- struct lttng_evaluation *evaluation = NULL;
+ struct lttng_evaluation *evaluation = nullptr;
if (view->buffer.size < sizeof(*comm)) {
goto end;
struct lttng_evaluation **_evaluation)
{
ssize_t ret;
- struct lttng_evaluation *evaluation = NULL;
+ struct lttng_evaluation *evaluation = nullptr;
if (!_evaluation) {
ret = -1;
struct lttng_evaluation **_evaluation)
{
ssize_t ret;
- struct lttng_evaluation *evaluation = NULL;
+ struct lttng_evaluation *evaluation = nullptr;
if (!_evaluation) {
ret = -1;