Fix all -Wdiscarded-qualifiers warning instances
[lttng-tools.git] / tests / unit / test_relayd_backward_compat_group_by_session.c
index 1be8df045c359ddb32fa6d65f042560e8811661c..d068372faff80e4b2282b960cda8d45981ce6af7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+ * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
  *
  * SPDX-License-Identifier: GPL-2.0-only
  *
 #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.024291 seconds and 4 git commands to generate.