void lttng_tracker_ids_destroy(struct lttng_tracker_ids *ids)
{
+ int i;
+
if (!ids) {
return;
}
- for (int i = 0; i < ids->count; i++) {
+ for (i = 0; i < ids->count; i++) {
lttng_tracker_id_reset(&ids->id_array[i]);
}
free(ids->id_array);
unsigned int count;
enum lttng_tracker_id_status status;
const struct lttng_tracker_id *id;
+ unsigned int i;
status = lttng_tracker_ids_get_count(ids, &count);
if (status != LTTNG_TRACKER_ID_STATUS_OK) {
goto error;
}
- for (unsigned int i = 0; i < count; i++) {
+ for (i = 0; i < count; i++) {
struct lttcomm_tracker_id_header id_hdr;
size_t var_data_len = 0;
int stop_consumer(const char **argv)
{
- int ret = 0;
- for (int i = named_pipe_args_start; i < nb_args; i++) {
+ int ret = 0, i;
+
+ for (i = named_pipe_args_start; i < nb_args; i++) {
ret = write_pipe(argv[i], 49);
}
return ret;
int resume_consumer(const char **argv)
{
- int ret = 0;
- for (int i = named_pipe_args_start; i < nb_args; i++) {
+ int ret = 0, i;
+
+ for (i = named_pipe_args_start; i < nb_args; i++) {
ret = write_pipe(argv[i], 0);
}
return ret;
enum lttng_domain_type domain_type,
enum lttng_condition_type condition_type)
{
+ unsigned int test_vector_size = 5, i;
enum lttng_condition_status condition_status;
struct lttng_action *action;
ok(lttng_register_trigger(NULL) == -LTTNG_ERR_INVALID, "Registering a NULL trigger fails as expected");
/* Test: register a trigger */
- unsigned int test_vector_size = 5;
- for (unsigned int i = 0; i < pow(2,test_vector_size); i++) {
+
+ for (i = 0; i < pow(2,test_vector_size); i++) {
int loop_ret = 0;
char *test_tuple_string = NULL;
unsigned int mask_position = 0;
int main(int argc, char **argv)
{
+ int i;
int num_test = sizeof(tests) / sizeof(struct test);
plan_tests(NUM_TESTS_PER_TEST * num_test);
diag("Backward compatibility utils for lttng-relayd --group-by-session");
- for (int i = 0; i < num_test; i++) {
+ for (i = 0; i < num_test; i++) {
char *expected = NULL;
char *result = NULL;