projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix all -Wdiscarded-qualifiers warning instances
[lttng-tools.git]
/
tests
/
unit
/
test_relayd_backward_compat_group_by_session.c
diff --git
a/tests/unit/test_relayd_backward_compat_group_by_session.c
b/tests/unit/test_relayd_backward_compat_group_by_session.c
index 1be8df045c359ddb32fa6d65f042560e8811661c..d068372faff80e4b2282b960cda8d45981ce6af7 100644
(file)
--- a/
tests/unit/test_relayd_backward_compat_group_by_session.c
+++ b/
tests/unit/test_relayd_backward_compat_group_by_session.c
@@
-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
*
*
* SPDX-License-Identifier: GPL-2.0-only
*
@@
-18,12
+18,12
@@
#define NUM_TESTS_PER_TEST 1
struct test {
#define NUM_TESTS_PER_TEST 1
struct test {
- char *stream_path;
- char *session_name;
- char *hostname;
- char *creation_time;
- char *extra_path;
- char *leftover;
+ c
onst c
har *stream_path;
+ c
onst c
har *session_name;
+ c
onst c
har *hostname;
+ c
onst c
har *creation_time;
+ c
onst c
har *extra_path;
+ c
onst c
har *leftover;
bool is_valid;
};
bool is_valid;
};
@@
-115,11
+115,12
@@
static char *craft_expected(struct test *test)
int main(int argc, char **argv)
{
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");
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 (i
nt i
= 0; i < num_test; i++) {
+ for (i = 0; i < num_test; i++) {
char *expected = NULL;
char *result = NULL;
char *expected = NULL;
char *result = NULL;
This page took
0.026102 seconds
and
4
git commands to generate.