X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fregression%2Ftools%2Fnotification%2Fdefault_pipe_size_getter.cpp;h=8902774b3100c6125ccbf6cce3ca28c02c2be4bf;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hp=febcc0a067ea0224e4b53ab6f351d8a8d156b894;hpb=ccfd51622dd086077c992d841dcc1ed1fab6b794;p=lttng-tools.git diff --git a/tests/regression/tools/notification/default_pipe_size_getter.cpp b/tests/regression/tools/notification/default_pipe_size_getter.cpp index febcc0a06..8902774b3 100644 --- a/tests/regression/tools/notification/default_pipe_size_getter.cpp +++ b/tests/regression/tools/notification/default_pipe_size_getter.cpp @@ -13,23 +13,23 @@ #define _GNU_SOURCE #endif -#include +#include +#include + #include #include #include - -#include -#include +#include int lttng_opt_verbose; int lttng_opt_mi; int lttng_opt_quiet; +namespace { #ifdef __linux__ /* * Return the default pipe buffer size or a negative error. */ -static int get_pipe_size(void) { int ret; @@ -57,7 +57,6 @@ end: return ret; } #elif defined(__FreeBSD__) -static int get_pipe_size(void) { return 65536; @@ -65,6 +64,7 @@ int get_pipe_size(void) #else #error "Implement get_pipe_size() for your platform." #endif +} /* namespace */ int main(void) { @@ -75,8 +75,8 @@ int main(void) return EXIT_FAILURE; } - /* Print the pipe buffer size to stdout */ + /* Print the pipe buffer size to stdout. */ printf("%d\n", ret); - return EXIT_SUCCESS; + return EXIT_SUCCESS; }