From 60a0fc5a5c8365546b77f8247aa5f9c524b214b2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 12 Jan 2010 10:33:09 -0600 Subject: [PATCH] Style: Various issues --- unit/test-mux.c | 8 +++++--- unit/test-util.c | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/unit/test-mux.c b/unit/test-mux.c index ec242a08..0fc697c8 100644 --- a/unit/test-mux.c +++ b/unit/test-mux.c @@ -186,7 +186,7 @@ static void test_mux(void) GAtSyntax *syntax; int sk; - sk= do_connect("192.168.0.202", 2000); + sk = do_connect("192.168.0.202", 2000); if (sk < 0) { g_printerr("connect failed\n"); return; @@ -392,7 +392,8 @@ static void test_extract_basic() /* Try to read with just the open flag */ nread = gsm0710_basic_extract_frame(basic_input + total, - basic_frame_size + 1, &dlc, &ctrl, + basic_frame_size + 1, + &dlc, &ctrl, &frame, &frame_size); g_assert(nread == 0); @@ -400,7 +401,8 @@ static void test_extract_basic() /* Now read with the close flag as well */ nread = gsm0710_basic_extract_frame(basic_input + total, - basic_frame_size + 2, &dlc, &ctrl, + basic_frame_size + 2, + &dlc, &ctrl, &frame, &frame_size); /* Extracted the open flag + frame */ diff --git a/unit/test-util.c b/unit/test-util.c index b5feb408..de628484 100644 --- a/unit/test-util.c +++ b/unit/test-util.c @@ -867,17 +867,17 @@ static void test_sim() utf8 = sim_string_to_utf8(sim_80_1, sizeof(sim_80_1)); g_assert(utf8); - g_assert(strcmp(utf8, "ono") == 0 ); + g_assert(strcmp(utf8, "ono") == 0); g_free(utf8); utf8 = sim_string_to_utf8(sim_80_2, sizeof(sim_80_2)); g_assert(utf8); - g_assert(strcmp(utf8, "ono") == 0 ); + g_assert(strcmp(utf8, "ono") == 0); g_free(utf8); utf8 = sim_string_to_utf8(sim_80_3, sizeof(sim_80_3)); g_assert(utf8); - g_assert(strcmp(utf8, "ono") == 0 ); + g_assert(strcmp(utf8, "ono") == 0); g_free(utf8); utf8 = sim_string_to_utf8(sim_81_0, sizeof(sim_81_0)); @@ -890,7 +890,7 @@ static void test_sim() utf8 = sim_string_to_utf8(sim_81_1, sizeof(sim_81_1)); g_assert(utf8); - g_assert(strcmp(utf8, "ono") == 0 ); + g_assert(strcmp(utf8, "ono") == 0); g_free(utf8); utf8 = sim_string_to_utf8(sim_82_0, sizeof(sim_82_0));