From 61319df8c259fb48e281a5e7e0d919735ff18ddc Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 22 Jan 2016 23:40:10 +0100 Subject: [PATCH] tests: white space / indentation fixes Fixes problems with GCC 6 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811583 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94149 --- libwmc/tests/test-wmc-com.c | 10 +++++----- libwmc/tests/test-wmc.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libwmc/tests/test-wmc-com.c b/libwmc/tests/test-wmc-com.c index 8b4b01d..4ffc338 100644 --- a/libwmc/tests/test-wmc-com.c +++ b/libwmc/tests/test-wmc-com.c @@ -43,13 +43,13 @@ typedef struct { gpointer test_com_setup (const char *port, wmcbool uml290, wmcbool debug) { - TestComData *d; - int ret; + TestComData *d; + int ret; - d = g_malloc0 (sizeof (TestComData)); - g_assert (d); + d = g_malloc0 (sizeof (TestComData)); + g_assert (d); d->uml290 = uml290; - d->debug = debug; + d->debug = debug; if (getenv ("SERIAL_DEBUG")) d->debug = TRUE; diff --git a/libwmc/tests/test-wmc.c b/libwmc/tests/test-wmc.c index e1027b2..1fc13ab 100644 --- a/libwmc/tests/test-wmc.c +++ b/libwmc/tests/test-wmc.c @@ -34,15 +34,15 @@ typedef GTestFixtureFunc TCFunc; static TestData * test_data_new (const char *port, gboolean uml290, gboolean debug) { - TestData *d; + TestData *d; - d = g_malloc0 (sizeof (TestData)); - g_assert (d); + d = g_malloc0 (sizeof (TestData)); + g_assert (d); if (port) d->com_data = test_com_setup (port, uml290, debug); - return d; + return d; } static void @@ -51,7 +51,7 @@ test_data_free (TestData *d) if (d->com_data) test_com_teardown (d->com_data); - g_free (d); + g_free (d); } int main (int argc, char **argv) @@ -102,9 +102,9 @@ int main (int argc, char **argv) g_test_suite_add (suite, TESTCASE (test_com_get_global_mode, data->com_data)); } - result = g_test_run (); + result = g_test_run (); - test_data_free (data); + test_data_free (data); - return result; + return result; } -- 2.7.0