From 3835d05c638e79f10dee57d0fa825d866122e80b Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Mon, 18 May 2015 17:47:13 -0700 Subject: [PATCH] tests: Fix code style on path/filename routines Signed-off-by: Bryce Harrington Reviewed-By: Derek Foreman --- tests/weston-test-client-helper.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 1bfd43f9..fda0ce7b 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -839,7 +839,8 @@ create_client_and_test_surface(int x, int y, int width, int height) } static const char* -output_path(void) { +output_path(void) +{ char *path = getenv("WESTON_TEST_OUTPUT_PATH"); if (!path) @@ -848,7 +849,8 @@ output_path(void) { } char* -screenshot_output_filename(const char *basename, uint32_t seq) { +screenshot_output_filename(const char *basename, uint32_t seq) +{ char *filename; if (asprintf(&filename, "%s/%s-%02d.png", @@ -858,7 +860,8 @@ screenshot_output_filename(const char *basename, uint32_t seq) { } static const char* -reference_path(void) { +reference_path(void) +{ char *path = getenv("WESTON_TEST_REFERENCE_PATH"); if (!path) @@ -867,7 +870,8 @@ reference_path(void) { } char* -screenshot_reference_filename(const char *basename, uint32_t seq) { +screenshot_reference_filename(const char *basename, uint32_t seq) +{ char *filename; if (asprintf(&filename, "%s/%s-%02d.png",