SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / tests / unit / test_relayd_backward_compat_group_by_session.c
index 1be8df045c359ddb32fa6d65f042560e8811661c..d2c0573aec158b816f4682472cea00b4d1c63bbb 100644 (file)
 #define NUM_TESTS_PER_TEST 1
 
 struct test {
-       char *stream_path;
-       char *session_name;
-       char *hostname;
-       char *creation_time;
-       char *extra_path;
-       char *leftover;
+       const char *stream_path;
+       const char *session_name;
+       const char *hostname;
+       const char *creation_time;
+       const char *extra_path;
+       const char *leftover;
        bool is_valid;
 };
 
@@ -115,11 +115,12 @@ static char *craft_expected(struct test *test)
 
 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;
 
This page took 0.024992 seconds and 5 git commands to generate.