X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-ns%2Fgen-ust-events-ns.cpp;h=c6b40f53dd2daaa01616718acccd5f0b3941c545;hb=cd9adb8b829564212158943a0d279bb35322ab30;hp=8a3014ea655e85204565eb0733ec986d55f78c7d;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.cpp b/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.cpp index 8a3014ea6..c6b40f53d 100644 --- a/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.cpp +++ b/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.cpp @@ -63,30 +63,30 @@ static int nr_iter = 100; static int debug = 0; -static char *ns_opt = NULL; -static char *after_unshare_file_path = NULL; -static char *before_second_event_file_path = NULL; +static char *ns_opt = nullptr; +static char *after_unshare_file_path = nullptr; +static char *before_second_event_file_path = nullptr; static struct poptOption opts[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ - { "debug", 'd', POPT_ARG_NONE, &debug, 0, "Enable debug output", NULL }, - { "ns", 'n', POPT_ARG_STRING, &ns_opt, 0, "Namespace short identifier", NULL }, - { "iter", 'i', POPT_ARG_INT, &nr_iter, 0, "Number of tracepoint iterations", NULL }, + { "debug", 'd', POPT_ARG_NONE, &debug, 0, "Enable debug output", nullptr }, + { "ns", 'n', POPT_ARG_STRING, &ns_opt, 0, "Namespace short identifier", nullptr }, + { "iter", 'i', POPT_ARG_INT, &nr_iter, 0, "Number of tracepoint iterations", nullptr }, { "after", 'a', POPT_ARG_STRING, &after_unshare_file_path, 0, "after_unshare_file_path,", - NULL }, + nullptr }, { "before", 'b', POPT_ARG_STRING, &before_second_event_file_path, 0, "before_second_event_file_path,", - NULL }, - POPT_AUTOHELP{ NULL, 0, 0, NULL, 0 } + nullptr }, + POPT_AUTOHELP{ nullptr, 0, 0, nullptr, 0 } }; static ATTR_FORMAT_PRINTF(1, 2) void debug_printf(const char *format, ...) @@ -207,7 +207,7 @@ int main(int argc, const char **argv) int ret = EXIT_SUCCESS; poptContext pc; - pc = poptGetContext(NULL, argc, argv, opts, 0); + pc = poptGetContext(nullptr, argc, argv, opts, 0); poptReadDefaultConfig(pc, 0); if (argc < 2) { @@ -236,7 +236,7 @@ int main(int argc, const char **argv) goto end; } - if (ns_opt == NULL) { + if (ns_opt == nullptr) { poptPrintUsage(pc, stderr, 0); ret = EXIT_FAILURE; goto end;