}
if (strcmp((const char *) consumer_output_node->name,
- config_element_consumer_output)) {
+ config_element_consumer_output) != 0) {
WARN("Invalid output type, expected %s node",
config_element_consumer_output);
ret = -LTTNG_ERR_LOAD_INVALID_CONFIG;
time_us_node = xmlFirstElementChild(child);
if (!time_us_node ||
strcmp((const char *) time_us_node->name,
- config_element_rotation_schedule_periodic_time_us)) {
+ config_element_rotation_schedule_periodic_time_us) != 0) {
ret = -LTTNG_ERR_LOAD_INVALID_CONFIG;
goto end;
}
bytes_node = xmlFirstElementChild(child);
if (!bytes_node ||
strcmp((const char *) bytes_node->name,
- config_element_rotation_schedule_size_threshold_bytes)) {
+ config_element_rotation_schedule_size_threshold_bytes) != 0) {
ret = -LTTNG_ERR_LOAD_INVALID_CONFIG;
goto end;
}
goto error;
}
- if (session_name && strcmp((char *) name, session_name)) {
+ if (session_name && strcmp((char *) name, session_name) != 0) {
/* This is not the session we are looking for */
ret = -LTTNG_ERR_NO_SESSION;
goto error;
/* Does the file end with .lttng? */
if (strcmp(DEFAULT_SESSION_CONFIG_FILE_EXTENSION,
result->d_name + file_name_len -
- sizeof(DEFAULT_SESSION_CONFIG_FILE_EXTENSION) + 1)) {
+ sizeof(DEFAULT_SESSION_CONFIG_FILE_EXTENSION) + 1) !=
+ 0) {
continue;
}