LTTNG_ASSERT(a->function_name);
LTTNG_ASSERT(b->function_name);
- if (strcmp(a->function_name, b->function_name)) {
+ if (strcmp(a->function_name, b->function_name) != 0) {
goto end;
}
LTTNG_ASSERT(a->binary_path);
LTTNG_ASSERT(b->binary_path);
- if (strcmp(a->binary_path, b->binary_path)) {
+ if (strcmp(a->binary_path, b->binary_path) != 0) {
goto end;
}
LTTNG_ASSERT(a->probe_name);
LTTNG_ASSERT(b->probe_name);
- if (strcmp(a->probe_name, b->probe_name)) {
+ if (strcmp(a->probe_name, b->probe_name) != 0) {
goto end;
}
LTTNG_ASSERT(a->provider_name);
LTTNG_ASSERT(b->provider_name);
- if (strcmp(a->provider_name, b->provider_name)) {
+ if (strcmp(a->provider_name, b->provider_name) != 0) {
goto end;
}
LTTNG_ASSERT(a->binary_path);
LTTNG_ASSERT(b->binary_path);
- if (strcmp(a->binary_path, b->binary_path)) {
+ if (strcmp(a->binary_path, b->binary_path) != 0) {
goto end;
}
int consumed = 0;
int ret;
struct lttng_userspace_probe_location_comm *probe_location_comm;
- struct lttng_payload_view probe_location_comm_view =
+ const lttng_payload_view probe_location_comm_view =
lttng_payload_view_from_view(view, 0, sizeof(*probe_location_comm));
LTTNG_ASSERT(view);
static int lttng_userspace_probe_location_function_set_binary_fd_handle(
struct lttng_userspace_probe_location *location, struct fd_handle *binary_fd)
{
- int ret = 0;
+ const int ret = 0;
struct lttng_userspace_probe_location_function *function_location;
LTTNG_ASSERT(location);
static int lttng_userspace_probe_location_tracepoint_set_binary_fd_handle(
struct lttng_userspace_probe_location *location, struct fd_handle *binary_fd)
{
- int ret = 0;
+ const int ret = 0;
struct lttng_userspace_probe_location_tracepoint *tracepoint_location;
LTTNG_ASSERT(location);