X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2Fgen-ust-nevents.cpp;h=b7c3974ee52c268e2f1d93e09e29b9ba4d00c1ee;hb=cd9adb8b829564212158943a0d279bb35322ab30;hp=e7a44151bb03d8b7d6903be43d2d477fdb4240df;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.cpp b/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.cpp index e7a44151b..b7c3974ee 100644 --- a/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.cpp +++ b/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.cpp @@ -25,11 +25,11 @@ static struct option long_options[] = { /* These options set a flag. */ - { "iter", required_argument, 0, 'i' }, - { "wait", required_argument, 0, 'w' }, - { "create-in-main", required_argument, 0, 'm' }, - { "wait-before-first-event", required_argument, 0, 'b' }, - { 0, 0, 0, 0 } + { "iter", required_argument, nullptr, 'i' }, + { "wait", required_argument, nullptr, 'w' }, + { "create-in-main", required_argument, nullptr, 'm' }, + { "wait-before-first-event", required_argument, nullptr, 'b' }, + { nullptr, 0, nullptr, 0 } }; int main(int argc, char **argv) @@ -41,8 +41,8 @@ int main(int argc, char **argv) float flt = 2222.0; unsigned int nr_iter = 100; useconds_t nr_usec = 0; - char *wait_before_first_event_file_path = NULL; - char *create_in_main_file_path = NULL; + char *wait_before_first_event_file_path = nullptr; + char *create_in_main_file_path = nullptr; while ((option = getopt_long(argc, argv, "i:w:b:m:", long_options, &option_index)) != -1) { switch (option) {