X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events%2Fgen-ust-events.cpp;h=3b62ed0dfee9a80baa82b6cb50c0c05dcd0232ec;hb=HEAD;hp=74ba9cf04e629b94ffd2db85c968e9dd5171dc89;hpb=ef07b7aee748b531763ee6a62a900cbcde4978cc;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-events/gen-ust-events.cpp b/tests/utils/testapp/gen-ust-events/gen-ust-events.cpp index 74ba9cf04..0e6b4812a 100644 --- a/tests/utils/testapp/gen-ust-events/gen-ust-events.cpp +++ b/tests/utils/testapp/gen-ust-events/gen-ust-events.cpp @@ -51,8 +51,8 @@ int main(int argc, char **argv) long values[] = { 1, 2, 3 }; char text[10] = "test"; char escape[10] = "\\*"; - double dbl = 2.0; - float flt = 2222.0; + const double dbl = 2.0; + const float flt = 2222.0; uint32_t net_values[] = { 1, 2, 3 }; int nr_iter = 100, ret = 0, first_event_file_created = 0; useconds_t nr_usec = 0; @@ -76,8 +76,8 @@ int main(int argc, char **argv) net_values[i] = htonl(net_values[i]); } - while ((option = getopt_long(argc, argv, "i:w:a:b:c:d:e:f:g:h", long_options, &option_index)) != - -1) { + while ((option = getopt_long( + argc, argv, "i:w:a:b:c:d:e:f:g:h", long_options, &option_index)) != -1) { switch (option) { case 'a': application_in_main_file_path = strdup(optarg);