diff options
author | Michael Biebl <biebl@debian.org> | 2016-01-22 23:40:10 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-02-15 14:16:25 +0100 |
commit | c533e56e1e9fd2c2c52093369f8a21ebd3f932ea (patch) | |
tree | 46e63ad3c3bb10f5df22e0f0f4ff797d0506db42 | |
parent | a08708c10ded19c5a0d369905f13beb8ee7cdc49 (diff) | |
download | ModemManager-c533e56e1e9fd2c2c52093369f8a21ebd3f932ea.tar.gz |
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
-rw-r--r-- | libwmc/tests/test-wmc-com.c | 10 | ||||
-rw-r--r-- | 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 8b4b01d63..4ffc338d6 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 e1027b2ec..1fc13ab18 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; } |