From d77f0b999171ab4fb3e7f36718a43b3beaa84ddd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 13 Jan 2023 11:58:51 -0500 Subject: [PATCH] Clean-up: default_pipe_size_getter: coding style adjustments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Change-Id: I24bbe1bbfa0608c1952ab1c86743320e77ea7c3c --- .../tools/notification/default_pipe_size_getter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regression/tools/notification/default_pipe_size_getter.cpp b/tests/regression/tools/notification/default_pipe_size_getter.cpp index febcc0a06..8615f769f 100644 --- a/tests/regression/tools/notification/default_pipe_size_getter.cpp +++ b/tests/regression/tools/notification/default_pipe_size_getter.cpp @@ -25,11 +25,11 @@ 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; } -- 2.34.1